Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
marcelolaia
Hangin' Around


Joined: Sep 28, 2005
Posts: 36
Location: Brazil

PostPosted: Mon May 01, 2006 7:30 am Reply with quote

Hi guys!!!

I install some ads in xML and a fancy newsletter and both are in UTF-8. My provider are setup in ISO-8859-1 and my phpnuke is ISO-8859-1, of course.

Then, I get a lot of wrong word.

How I change my phpnuke to UTF-8 or how I change my ads and fancynl to ISO-8859-1 ???

Thank you a lot

_________________
Marcelo Only registered users can see links on this board! Get registered or login!
O site do Pós-Graduando
Concurso, Notícias, CAPES, CNPq, FAPESP, Mestrado, Doutorado, Professor, Público, Universidade, Faculdade 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon May 01, 2006 5:35 pm Reply with quote

In your language/lang-*.php file, you will want to change the _CHARSET constant

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
marcelolaia
PostPosted: Mon May 01, 2006 9:52 pm Reply with quote

I have been changed iso to utf-8, but I get a lot of bad character.

I suppose the reason for this is that BD is in other one character set....

Any suggestion?
 
marcelolaia
PostPosted: Tue May 09, 2006 1:05 pm Reply with quote

I found around this one:

Quote:
10.4. Connection Character Sets and Collations
Several character set and collation system variables relate to a client's interaction with the server. Some of these have been mentioned in earlier sections:
*The server character set and collation can be determined from the values of the character_set_server and collation_server system variables.
*The character set and collation of the default database can be determined from the values of the character_set_database and collation_database system variables.
(...)
There are two statements that affect the connection character sets:
SET NAMES 'charset_name'
SET CHARACTER SET charset_name
SET NAMES indicates what character set the client will use to send SQL statements to the server. Thus, SET NAMES 'cp1251' tells the server “future incoming messages from this client are in character set cp1251.” It also specifies the character set that the server should use for sending results back to the client. (For example, it indicates what character set to use for column values if you use a SELECT statement.)




Phpnuke use this one??? Only registered users can see links on this board! Get registered or login!

Thank you very much
 
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 719
Location: http://tinyurl.com/5z8dmv

PostPosted: Tue May 09, 2006 5:17 pm Reply with quote

It's almost impossible to convert UTF-8 to ISO-8859-1 UNLESS the characters inside the utf8 message is latin-1 ONLY.

The issue is simple:
ISO-8859-1: 256 characters
UTF-8: currently 65.458 characters

Now how do you fit 65.000 characters in a setup that can only handle 256 ?
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©