Hey. Cavey told me to forward this "issue" to you.
IRC log:
[12:08] <Zero3Cool> any AM developer around?
[12:20] <PMOnoTo> what would you need an am developer for?
[12:20] <Zero3Cool> to fix, or perhaps show me a
work-around for an annoying
bug (well, or missing feature, i dont know) in a bunch
of the included AM
functions
[12:21] <Cavey> Like.... ?
[12:21] <Zero3Cool> everything from readfile() to
strcpy() has a bug/problem
with handling strings containing specific characters
[12:21] <PMOnoTo> like % ? =P
[12:21] <Zero3Cool> nop, try this:
[12:21] <PMOnoTo> \0 ? =P
[12:22] <Cavey> ^0 ?
[12:22] <Zero3Cool> create a file and put in one line
containing "ć%ŁcI/".
Then have a plugin readfile() it and log() it. In the
"meantime" AM has
converted the string to "˙˙˙ć"
[12:22] <Zero3Cool> no, no null-stuff, simple
characters as "ć" "ř" and "ĺ"
(as well as a bunch others)
[12:23] <PMOnoTo> well that chars are weird anyway
[12:23] <Zero3Cool> however, doing String = "ć%ŁcI/"
and log(String) works
just fine, you will see ć%ŁcI/ in your logs
[12:23] <PMOnoTo> =P
[12:23] <Cavey> You sure it isnt a HLDS/CS issue ?
[12:23] <Zero3Cool> yes
[12:23] <Cavey> Hmmm
[12:23] <Zero3Cool> its a default character on the
danish keyboard and i
really want to support non-english
[12:24] <Cavey> Try sending an email to darope@adminmod.org
[12:24] <Zero3Cool> kay
[12:24] <Cavey> He will probably fix it in the next
release if it needs
fixing
[12:25] <Zero3Cool> k, thx
~Zero3Cool
Logged In: YES
user_id=938276
Did some more research on this. It only appears to happen
when the first character (Array 0) in the string is a
"special" character. A string like "ABC" seems to go
through fine.
A list of character codes can be found here:
http://webmonkey.wired.com/webmonkey/reference/special_characters/
(Ignore the web-style ("æ" = "230")). The letters 230,
248 and 229 (Uppercase 198, 216 and 197) are everyday
letters where i come from. I guess the problem affects most
non-english letters?