|
Col Martinek
Registered User
Join date: 12 Apr 2007
Posts: 1
|
07-04-2007 16:34
Hi all, This does not work (Syntax error): if (chr == "£"  but this does: if (chr == "$"  Why is this? I don't see any special significance to the £ char. Thanks! Col
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
07-04-2007 16:40
Are you sure that character is in the chr variable? There have been problems with unicode, such as in notecards, making it into the script.
|
|
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
|
07-04-2007 17:00
yes, i have just given up on using anything which isn't 'Murican.
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
07-05-2007 08:51
Yikes, what a pain. It looks like LSL source isn't unicode-safe. You'll need to somehow create a variable to hold the pounds symbol, and initialize it using llUnescapeURL("%..."  ;. I'm not completely clear on what character code the pounds symbol corresponds to, but you might have luck by typing the symbol into google and seeing what your web browser does to URL-escape it. Nasty workaround, but it might work.
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
07-05-2007 20:19
Scripts are ascii, $ is in the ascii charset, £ is not...
_____________________
http://slurl.com/secondlife/Together
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
07-06-2007 03:12
See the thread below for a workaround.
forums.secondlife.com/showthread.php?p=1500162
|
|
Ishtara Rothschild
Do not expose to sunlight
Join date: 21 Apr 2006
Posts: 569
|
07-06-2007 04:40
Why not use GBP instead?
|