1
Vote

Problem with Turkish chars

description

Hello i wanto to use NTemplates but looks like Turkish characters in ## tags not render correctly.


for example :
i added a row like this :
police.Rows.Add(new object[] { "XXX NOLU POLİÇE çöğüşı ÇÖĞÜŞİ" });

output :
XXX NOLU POL0ÇE çö_ü_1 ÇÖ_Ü^0

İ ğşı chars wrong.

this happen only datafield, turkish chars in template works normally.

comments

gmendez wrote Sep 18, 2014 at 3:15 PM

Hi, thanks for reporting this issue.
Looks like this has to do with text encoding.
Could you tell me wich encoding (in c#) do you usually use for your language?
Thanks.

omertask wrote Sep 18, 2014 at 5:18 PM

hi , I use default commonly, but Turkish encoding "windows-1254" .

thanks

gmendez wrote Sep 23, 2014 at 2:30 PM

Hi omertask:

I could try a solution for this during the following days.
I don't have much time right now to dedicate to this project, so I would do some refactoring only if you agree to test your case before I publish the refactored code. So you would be a beta tester :)
The idea is to let the developer specify which encoding to use. The API would expose a property for that. You just need to provide the correct encoding object, in case different from Encoding.Default.
Please note there's no warranty this will resolve the issue you reported. What do you think?
Cheers!