Jump to content

Character encoding problem


vineld

Recommended Posts

I am experiencing some character encoding  problems. Our system is built in ISO-8859-1 for various reasons. Our database text fields are in our local version of latin-1. So far so good. However, when communicating with other servers we obviously need to send xml data in utf-8 which is where the problems start. What happens is this:

 

1. We have a page saved in ANSI

 

2. I fetch text from the database

 

3. I use utf8_encode(TEXT)

 

4. The above is sent via xml

 

However, on the other side the receiver views the message with characters like 'ö' instead of the correct utf8 string. Where am I going wrong here?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.