Jump to content

htmlentities messes up characters like 'öäüõ'


rain13

Recommended Posts

From öäüõ it gets

öäüõ

which browser translates to öäüõ which isnt same anymore. I figured that correctl encoded string would be

öäüõ

Is there way to tell htmlentities not to touch characters such as öäüõ or other way around it?

Edited by SoItBegins
Link to comment
Share on other sites

Yes. Specify the third argument to the correct charset. If your PHP document is encoded in UTF-8, as it should be, specify "UTF-8" there.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...