Special characters in Editor language file
March 21, 2018, 03:51:31 pm
Hey, I have noticed any "special" character you insert into the Editor language file does not parse properly even if the file is indeed UTF8. I am talking mainly about the hover tooltips for example danish language makes use of the chars "æ, ø, å" but it does not show up correctly. I assume other languages have similar things.
Re: Special characters in Editor language file
Reply #5 – March 22, 2018, 07:37:06 pm
emanuele
Global Moderator
hmm... pretty interesting. I love characters encoding! xD I assume the browser is the same. Also, I'm assuming you are talking about 1.1 (even though it shouldn't make any difference... in theory). Are you using minification on js files? Can you check if by chance the server is sending some wrong information about the charset for js files?
Re: Special characters in Editor language file
Reply #7 – March 24, 2018, 04:13:54 pm
emanuele
Global Moderator
Could you please zip the file Editor.danish.php (I think it is "danish" but I'm not sure lol, well, anyway the Editor file in Danish) and attach it here?
Re: Special characters in Editor language file
Reply #8 – March 25, 2018, 12:14:14 am
Sure, is the same one as on transifex. There is nothing wrong with the language file, if i put in some debugging and output some of the strings directly on the page it all shows correctly, the problem only occurs through the editor js.
Re: Special characters in Editor language file
Reply #9 – March 26, 2018, 03:01:53 pm
emanuele
Global Moderator
Why did you attach two? Which one is the one you are using?
Re: Special characters in Editor language file
Reply #10 – March 26, 2018, 09:50:19 pm
As i said above changing the encoding from utf8 to ascii fixed the issue (for whatever reason) that's why i included both. I'm currently using the ascii one so the problem is solved, the utf8 is the original which causes the issue.
Re: Special characters in Editor language file
Reply #11 – April 01, 2018, 04:23:51 pm
emanuele
Global Moderator
The file here was outdated, and was still in English... lol Anyway I updated it few moments ago with your UTF8 file, so if you want to give it another try it would help. With my browser it seems to work.
Re: Special characters in Editor language file
Reply #12 – April 02, 2018, 10:34:27 am
Yeah it works fine. I'm not entirely sure what the difference is on my server that makes it go haywire when the file is in UTF8 but i can live with it being in ascii, at least it works then. And the danish language pack you are using on the site currently is ancient, i have completed the translation on transifix a long time ago for both 1.0.x and 1.1.x.