SphereServer BugTracker - SphereServer
View Issue Details
0001715SphereServerexecutable - genericpublic30-01-10 18:2131-01-10 13:54
xantier 
 
normaltweakalways
newopen 
0.56c Nightly 
 
Not Available
Unicode
None
0001715: String functions for unicodes ?
I'm trying to implement old style uo font for era accuracy and i encountered some problems. As you know there is no unicode in old uo fonts but i want to convert them to ascii. There are problems. For example, '?' ;
? to s

"if strmatch(<asc <strsub <dlocal._for> 1 <args>>>,<asc ?>)
local.text .=s"

Strsub doesn't work by unknown problem. And <asc ?> shows me two words "0fffff1e 0fffff3e" unlike other characters (069 , 032 etc.)

Strlen shows '?' as 2 characters.

There must be a function that works for both unicode and ascii.. Strsub and strlen must be fixed for unicodes (2-char problem). I cannot split sentences with unicode characters.
No tags attached.
? f_charsets.scp (12,044) 31-01-10 13:51
http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=29&type=bug
Issue History
30-01-10 18:21xantierNew Issue
30-01-10 18:21xantierNightly Version => Not Available
30-01-10 18:21xantierExperimental Flags => Unicode
30-01-10 18:21xantierOption Flags => None
31-01-10 01:58xantierNote Added: 0000374
31-01-10 13:51dzhonyFile Added: f_charsets.scp
31-01-10 13:51dzhonyNote Added: 0000375
31-01-10 13:54dzhonyNote Added: 0000376

Notes
(0000374)
xantier   
31-01-10 01:58   
the character shown like ? is not question mark, it's just 's' with extension (unicode)
(0000375)
dzhony   
31-01-10 13:51   
Some time ago, I've developed scripted solution of this problem, maybe it is worth publishing in this bug report :)
(0000376)
dzhony   
31-01-10 13:54   
P.S. The comments and examples in the head of the script may be out of date, but the main code should work well