|
Oblivion Kaos
0z0ne Bringer
Join date: 28 Sep 2005
Posts: 17
|
10-12-2005 09:21
As I am spanish, I want to show texts in spanish, and we can´t as we cannot write strings with vales like "Canción" or "España"...
Nothing to say about french, japaneses, chinese...
|
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
10-12-2005 10:03
...portuguese... 
|
|
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
|
10-12-2005 10:13
Yes i fully support this, i was surprised to see they added unicode support for settext and setsittext in 1.7, but actually trying to get it to say what you want, shudders
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
10-15-2005 13:51
I've been campaining for better unicode support in the client (specificly the script editor). here is a function for generating arbitrary unicode characters (in 1.7). string byte2hex(integer x) { string hexc="0123456789ABCDEF"; integer x0 = (x & 0xF); return llGetSubString(hexc, x0 = ((x >> 4) & 0xF), x0) + llGetSubString(hexc, x0, x0); }
string UnicodeIntegerToUTF8(integer a) { if(a <= 0) return ""; integer b = 0; integer c = 0; string d; if (a >= 0x4000000) c = 5; else if (a >= 0x200000) c = 4; else if (a >= 0x10000) c = 3; else if (a >= 0x800) c = 2; else if (a >= 0x80) c = 1; while(b < c) d = "%" + byte2hex((((a >> (6 * b++)) | 0x80) & 0xBF)) + d; d = "%" + byte2hex((a >> (6 * c)) | ((0x3F80 >> c) * (0 != c))) + d; return llUnescapeURL(d); }
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|