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 
 
Accent problem
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Wed Jan 03, 2007 12:52    Post subject: Reply with quote

amphiprion wrote:
Like i said previously, the problem occurs for me (and others) ONLY if i insert data using a MySQL client (phpmyadmin, etc...)

But like you, i don't have any problem if i display a string previouly inserted by nwnx.


Quote:

But the most important snippet is:

Character set issues affect data storage, but also communication between client programs and the MySQL server. If you want the client program to communicate with the server using a character set different from the default, you'll need to indicate which one. For example, to use the utf8 Unicode character set, issue these statements after connecting to the server:

SET NAMES 'utf8';
SET CHARACTER_SET utf8;

To change the connection charset permanently to UTF-8, add the following line in the [mysqld] section:
[mysqld]
init-connect='SET NAMES utf8'



Using the MySQL client -- ANY MySQL client --, you'll need to specify that the data you are inserting is encoded as UTF-8, to get it out in UTF-8 (otherwise it will default/convert to UCS-2)

Note: UCS-2 while used by MySQL internals cannot be used as a client character set.

Cheers
Gryphyn
Back to top
View user's profile Send private message
Arvirago



Joined: 17 Nov 2006
Posts: 15

PostPosted: Mon Sep 10, 2007 21:26    Post subject: Reply with quote

I have the same problem.
I have these books that display a GUI when used, and get the content of the book from a mysql table via nwnx4.
I want to write the text for the books from the web, but when I show them in NWN2 (using the GUI or using SendMessage) all accents go wrong.
I have also tried different configurations for my DB/table, latin1, UTF8, etc. but to no good.

I'll try to use amphiprion's fix meanwhile. Thx.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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