Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

charset problem


malyha1

Recommended Posts

Posted

Hi all

 

I am selling books in Arabic and configured my cart to display Arabic. The problem is that the hosting server is enforcing uncode utf-8 instead of leaving it up to the domain owner. Does anyone know of a java script or other language code to enforce windows-1256 instead of the language the server is defaulting to?

 

I know there is some code that I need to include bt don't know where to find/look fo it.

 

Thanks

Posted
Does anyone know of a java script or other language code to enforce windows-1256 instead of the language the server is defaulting to?

On an Apache server, provided your ISP allows you to use .htaccess files to override server directives, you should be able to set your own character set (see http://httpd.apache.org/ can even be set on a file by file basis).

Posted

For an Apache server, uploading a text file (like htaccess.txt) to your root directory with the line:

 

AddType "text/html; charset=windows-1256" .php

 

Then rename the file to .htaccess (no extension!) might do the trick.

Archived

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

×
×
  • Create New...