Fix color embedding for asian languages - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fix color embedding for asian languages (
/showthread.php?tid=406130)
Fix color embedding for asian languages -
MyLife - 09.01.2013
This problem since 0.3c .......
the color embedding is not accurately when use with asian languages.
Ex.
หมาจิ้งจอก{FF0000}สีแดง{00FF00}กระโดดข้ามหลัง เต่า
Result
หมาจิ้งจอกสีแดงก
ระโดดข้ามหลังเต่า
AW: Fix color embedding for asian languages -
Meta - 13.01.2013
We had that back then when those codes were introduced in dialogs where \n were the problem (it got fixed by Kalcor then) but maybe here the problem is that when symbols are unknown to a computer it outputs (not always) 2 other symbols instead and maybe that leads into colors being at the wrong position
If you know what I mean ...
Re: Fix color embedding for asian languages -
leong124 - 14.01.2013
It was fixed in 0.3c since it is introduced, for Traditional Chinese (and most languages I think) but maybe not Thai. IIRC it happens on SendClientMessage(ToAll), not only in dialogs.
This should be related to the character coding system I think, because it uses 16-bit characters with different definition as other codes.