Jump to content

Recommended Posts

Hey, I'm working on an application that allows users to submit content, but i'm having a hard time understanding how exactly the submitted information is encoded. The content is in another language I know that I have to utilize utf-8 in order to render the special characters correctly. How do I make sure that the characters inputed by the users are utf-8 compliant though? I've noticed that in windows vista, I have two options for the language which I've selected: "legacy" and "standard", and they (although output the same character), the Hex values for them are not ideantical.

 

How is this typically done, so that all user submitted content are subject to the same encoding. Do I need to, perhaps, have buttons to insert special character's html entities via javascript?

 

When storing the submitted data (assuming it was typed with utf-8 characters), do store them in the mysql db as is? or do store their html entity equivalent?

Link to comment
https://forums.phpfreaks.com/topic/158866-utf-8-assistance/
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.