Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

utf-8 and dropdownmenu


outdoor

Recommended Posts

Hello Forum

 

Are there some users which use utf-8 for showing special characters with this contrib?

In my examples the german umlauts will be displayed incorrectly , if I change the browser settings to utf-8. With ISO-latin 8859-1 all works fine. Also within the normally categories-box, the entries will be showed correctlely:

 

Example : http://demo.handshake.ch/shop/

 

I use mysql 3.23.54, PHP 4.09 on Solaris 8 / X86

 

Somebody have an Idea, how I can fix this?

I think I'm going mad :-(

 

Greetings

Outdoor

Link to comment
Share on other sites

Hello Forum

 

Are there some users which use utf-8 for showing special characters with this contrib?

In my examples the german umlauts will be displayed incorrectly , if I change the browser settings to utf-8. With ISO-latin 8859-1 all works fine. Also within the normally categories-box, the entries will be showed correctlely:

 

Example : http://demo.handshake.ch/shop/

 

I use mysql 3.23.54, PHP 4.09 on Solaris 8 / X86

 

Somebody have an Idea, how I can fix this?

I think I'm going mad :-(

 

Greetings

Outdoor

 

O.K. - I could fix it. in select_rs.php go to the bottom and insert the following line:

mysql_close($link);
//Add REGEX for utf-8 conversion
$s= preg_replace ('/([\x80-\xff])/se', "pack (\"C*\", (ord ($1) >> 6) | 0xc0, (ord ($1) & 0x3f) | 0x80)", $s);
return $s;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...