Language Encoding Bug?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 anos atrás
Hello, i wanted to import an german language XML file to nopcommerce, now i get for the ä ü ö ÄÜÖ unknown signs, beceause the streamreader could not find the right Encodig for the words

i looked in the

\NopCommerceStore\Administration\Modules\LanguageInfo.ascx.cs

In the Import Event of the XML file, the function reads the whole file with the stream reader:

Normal Code:
using (StreamReader sr = new StreamReader(importResourcesFile.InputStream)


I changed it to:

using (StreamReader sr = new StreamReader(importResourcesFile.InputStream, Encoding.Default))


so it works !!!


Is it a bug? Whats in the future, must i always change these function?
14 anos atrás
Hey, I think that your nop solution is set to english. Try to change it to de-de in the masterpagefiles or loginfiles.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.