30.11.2017, 19:48
I'm using Sublime Text 3 to code, as I find it very easy to use, nice syntax and many useful features. The only problem is that I can't code in my native language. It's hard for me to explain it, but I'll try.
In order to show latvian characters in SA:MP in-game, I have to set system locale to latvian. When I do that and write something in latvian in Pawno editor, compile it and text shows up as it should. Here's where the problem starts. When I even just re-save the script in Sublime Text 3 or N++, it won't show special characters in Pawno editor anymore and won't work in-game. Even if I save as Baltic encoding, UTF-8 and so on. The special characters I'm talking about are "ā", "ē", "č", "ņ", "ķ" and so on. And don't say "****** it", because I already did, and found only 1 topic about this with no solution. In Latvia we don't have many people that script pawn. Can anyone give me some advice here?
Latvian special characters wrote in Pawno editor - http://prntscr.com/hhfuu9
Same file open with Sublime Text 3 - https://prnt.sc/hhfvlw
If I write and save the script in Pawno editor, it will show exactly like that in-game, just like I need.
But if I save in Pawno, re-save with something else, it won't show up correctly even in Pawno anymore.
In order to show latvian characters in SA:MP in-game, I have to set system locale to latvian. When I do that and write something in latvian in Pawno editor, compile it and text shows up as it should. Here's where the problem starts. When I even just re-save the script in Sublime Text 3 or N++, it won't show special characters in Pawno editor anymore and won't work in-game. Even if I save as Baltic encoding, UTF-8 and so on. The special characters I'm talking about are "ā", "ē", "č", "ņ", "ķ" and so on. And don't say "****** it", because I already did, and found only 1 topic about this with no solution. In Latvia we don't have many people that script pawn. Can anyone give me some advice here?
Latvian special characters wrote in Pawno editor - http://prntscr.com/hhfuu9
Same file open with Sublime Text 3 - https://prnt.sc/hhfvlw
If I write and save the script in Pawno editor, it will show exactly like that in-game, just like I need.
But if I save in Pawno, re-save with something else, it won't show up correctly even in Pawno anymore.