Are you aware of the role of the resource\<mod_name>_<language>.txt file?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of oLLy
Sent: Tuesday, March 27, 2007 17:27
To: [email protected]
Subject: [hlcoders] IFileSystem loading UTF8 Files

--
[ Picked text/plain from multipart/alternative ]
Hello,
I have a keyvalues file with strings for my plugin, and i want to use this
file as a language file so it will have multiple languages of each string.

Example
Language {
    "EN" {
        MsgSettingReload        "Reloaded settings."
    }
    "FR" {
        MsgSettingReload        "Réglages rechargés."
    }
}

But when i get the value for 'MsgSettingReload' all of the accents are left
off when creating a usermessage from it. I tried saving the file with UTF8,
and UNICODE encoding; but this time when i tried to load the file, Visual
Studio crashes with this error (
http://img90.imageshack.us/img90/3373/erroris5.jpg)

Anyone managed to load a UTF8 encoded file into KeyValues?

Olly
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to