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
https://forums.phpfreaks.com/topic/194115-character-encoding-problem/
Share on other sites

Archived

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

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