logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Which encoding must be used?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Bag Kroud



Joined: 26 Apr 2009
Posts: 1

PostPosted: Sun Apr 26, 2009 12:16    Post subject: Which encoding must be used? Reply with quote

Hello,

I'm using nwnx4 with a MySql database.
In order to limit the number of access to the database, I've created stored procedure and functions.

I ve created a system where npc can reply sentences stored in database.

And here is my problem : I can't figure out which encoding I must use to store those sentences.
Sentences are stored in french so there's some é è ê...

Explanation :

The function I call take some parameters and one is : what the pc said.
If I watch the log xp_nwnx.txt, it seems that the input sentece is stored in utf8.
--> I've encode my fields in utf8_unicode_ci.

But! When I watch the output sentence, It seems to be encoded in latin1

Is there a way to specifie which encoding must be used in input and ouput ?

(I've tried to use methods like COLLATE, CHARSET in my function but it seems the problem reside in the parsing after the return of the function.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group