GameMonkey Script

GameMonkey Script Forums
It is currently Mon Nov 20, 2017 3:36 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 07, 2015 5:09 am 
Offline

Joined: Thu Nov 03, 2011 1:00 am
Posts: 6
Hello,

I'm trying to support other Latin languages and have tried to make strings in gamemonkey with accents. however, the strings are not being recognized correctly.

In my example:

(in gamemonkey)
Code:
local str = "HELLO á, é, í, ó, ú, ü, ñ TEST By";


but when I print() the string, and when I inspect the (char*) string in Visual Studio, I get this:
Code:
HELLO á, é, í, ó, ú, ü, ñ TEST BY


do you know what I can do to support these special characters? Note that the gamemonkey file is in UTF-8.

Thank you in advance! :)


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 12, 2015 9:50 am 
Offline

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 698
I recall the GM parser has some issue with UTF-8 characters in script.
The string object itself may contain UTF-8 text, so the work around I recall using was to load localization strings from a text or data file.
Here's an old post on this topic that may be helpful: About Unicode support


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group