need to change encoding
Posted 01 August 2004 - 20:55
Does it allow any language to be viewable? Or is it to view a certain language?
Posted 02 August 2004 - 15:30
Please I can't view my site. Someone help.
When I view my site, I always have to go to view>Encoding>Windows(Arabic) to be able to view it. Is there a way I can change the code to open IE encoded in Windows-1256 by default?
Posted 02 August 2004 - 20:55
There is something in oscommerce code that defines charset. I defined it in english.php and in arabic.php but the encoding is still defaulting to western english
What does this do?
Posted 05 August 2004 - 19:51
But the explorer cannot be set automatically to the defined language encoding.
Strange enough, when I use view source menu and save the page in html file, the html works. The explorer is automatically set to the language encoding.
But it does not work for the HTML generated by the PHP. There must something need to be fixed.
Anyone has any ideas or experience that can be shared here?
Posted 05 August 2004 - 20:28
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> </head> <body dir="LTR" lang="tw"> 以一變千, 生機無限 </body> </html>
If I save to HTML, the browser will automatically set to ChineseBig5. But if I save it into PHP file, the browser will automatically set back to Westen Language EVEN I have maually set the encoding to ChineseBig5.
There must be some thing in PHP we must take care of. Helps are appreciated.
Posted 05 August 2004 - 20:46
I uploaded the test PHP file to my real web server, it works.
So, what you want to change in osCommerce is just two lines:
in yourlanguage.php file.
Posted 06 August 2004 - 22:19
I have changed the same two line previously but it didn't work. Do you know where I can find a list with the options for languages? I am typing
define('LANGUAGE_CURRENCY', 'USD'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="ar"'); // charset for web pages and emails define('CHARSET', 'win1256');
Is the language code typed correctly? Or should it be spelled differently? I really appreciate your help.
I talked to my hosting company and they said that they don't know how to fix it. I told them that they need to change their server but you know, may be I am wording it incorrectly and that is causing them to not understand what I mean. What do you think I should tell them to change?