Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Doubt about TiM-SE ISO-8859-1/UTF-8 solution


RJMA

Recommended Posts

Hi, I'm changing the charset of my php files using your solution (http://addons.oscommerce.com/info/7628), and I've a doubt about the points in the checklist at the end of the file. In first, sorry for some bad english, not my native language.

 

Do I have to change the encode type of every php file from UTF-8 to ISO?

 

If so, there are some ISO options in 'Dreamweaver-Modify-Page Properties-Title/Encoding' to choose, and because I'm from Portugal I've choose the Central Europe ISO. It's that ok?

 

And, do I've to change every php file by and, or exist some process to change the encoding in all the php files in one way?

 

Thank you for your help.

 

RJMA

Link to comment
Share on other sites

Its only the dBase charset & the definition you are using that need changing, you just need to edit your language file to change the definition for all pages, though I prefer the use of

header('Content-Type: text/html; charset=iso-8859-1');

to the osC method.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Ricardo, are you changing from UTF-8 to ISO?... I recommend you to use UTF-8 entirely.

 

Sara

 

Hi, I'm changing because of the "ç" character. In UTF-8 it doesn't shows properly...

 

 

Its only the dBase charset & the definition you are using that need changing, you just need to edit your language file to change the definition for all pages, though I prefer the use of

header('Content-Type: text/html; charset=iso-8859-1');

to the osC method.

 

Where should I change this? In which files?

Link to comment
Share on other sites

In includes/template_top.php just before:

 

?>
<!DOCTYPE html PUBLIC "-//W3C......

 

I.E. its php code, so must appear within the php tags

 

you should also remove the line:

 


<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />

 

 

as that line is saying its equivalent to the new.

 

To maintain the osC settings methodology you could put:

 

header('Content-Type: text/html; charset=' . CHARSET);

 

ensuring you set

define('CHARSET', 'iso-8859-1');

in your language file, changing the definition to what you need.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

In includes/template_top.php just before:

 

?>
<!DOCTYPE html PUBLIC "-//W3C......

 

I.E. its php code, so must appear within the php tags

 

you should also remove the line:

 


<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />

 

 

as that line is saying its equivalent to the new.

 

To maintain the osC settings methodology you could put:

 

header('Content-Type: text/html; charset=' . CHARSET);

 

ensuring you set

define('CHARSET', 'iso-8859-1');

in your language file, changing the definition to what you need.

 

I've tried that, and the "ç" characters are showed properly, but all the others like "á", "é", "€" aren't showed properly... Do you know a away to resolve that?

Link to comment
Share on other sites

Have you changed the dBase charset?

 

set character set latin1_swedish_ci

 

or

 

set character set latin1

 

whichever applies

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...