Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How can I use Chinese in a script?

Chicken Rosca
Registered User
Join date: 21 Jun 2007
Posts: 30
07-13-2007 20:02
Hi!
I have a question:How can I use Chinese in a script? Chinese always appears to be squares in the script window. When I clicked on "save", it always says ";(**,**):Error:Syntax error".
TIA~
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
07-13-2007 20:52
I don't think you can, yet. I think you are limited to ASCII7 characters in scripts for now, even in string literals. I tried to make a string containing the copyright symbol (C) and it simply wouldn't compile. It would ignore the closing quotation mark. I took out the (C) symbol it compiled fine.
_____________________
http://slnamewatch.com — Second Life Last Name Tracking — Email Alerts — Famous People Lookup — http://adz.secondlifekid.com/ — Artificial Boy — Personal Blog
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.
Chicken Rosca
Registered User
Join date: 21 Jun 2007
Posts: 30
07-13-2007 21:21
I heard that I can encode Chinese using base64 and use llBase64ToString in SL to decode the base64 string. Is that possible? If it's possible, can you give me a website that can encode Chinese online. Thanks~
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
07-13-2007 21:29
From: Chicken Rosca
I heard that I can encode Chinese using base64 and use llBase64ToString in SL to decode the base64 string. Is that possible? If it's possible, can you give me a website that can encode Chinese online. Thanks~
Oh...thats a neat idea (and it might solve my (C) problem). Alas, I do not know of an online Chinese to Base64 converter.
_____________________
http://slnamewatch.com — Second Life Last Name Tracking — Email Alerts — Famous People Lookup — http://adz.secondlifekid.com/ — Artificial Boy — Personal Blog
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.
Chicken Rosca
Registered User
Join date: 21 Jun 2007
Posts: 30
07-13-2007 21:34
I've found a ASP script which can be used to encode base64, but when I use it in SL, it seems to be some question marks. Why?