Hi!

I have a php code that reads xml file. In xml file I have the german letter ö (this xml file is saved as UTF). This is mistake. I don't get ö. I get some strange carachters (like ö). Can somebody help me? Thanks a lot!

Recommended Answers

All 5 Replies

You'll have to change the charset somewhere, perhaps iso-8859-1 instead of utf-8, or the other way around. What could help is just change the charset of the page in your browser, and look for which charset you get the ö.

Charset of ö is & # 246. What then? (I tried to add & # 246 instead of ö in xml file, but it didn't work)

Nope, that's an entity. You'll need to change the charset of the page. For example, the following in <head/> would set utf-8:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Thanks a lot!

No problem :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.