PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
marcelolaia
Hangin' Around


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

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

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
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 Back to top

In your language/lang-*.php file, you will want to change the _CHARSET constant
View user's profile Send private message Visit poster's website
marcelolaia
Hangin' Around


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

PostPosted: Mon May 01, 2006 9:52 pm Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website
marcelolaia
Hangin' Around


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

PostPosted: Tue May 09, 2006 1:05 pm Reply with quote Back to top

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 to the forums!


Thank you very much
View user's profile Send private message Visit poster's website
djmaze
Subject Matter Expert


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

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum