Jump to content

Recommended Posts

Hello,
I am trying to build a website that will support multiple languages (mainly english and Japanese)

Can someone explain what I need to be able to put all my strings into utf-8 ?
Here is what I would like to do.
Use UTF-8 for all strings.
It is my understanding that utf-8 can encode every possible language. (please correct me if I am wrong)

and here are the questions.
how do you do this exactly ?

I think I have to set the charset in the website to utf-8
( <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET="utf-8"> )

the database has to have utf-8 as default charset I guess ?
I guess that means I have to put all the text and varchar fields to utf-8.
Does anyone know if you can do that without losing data ?

Do I need to do something else ?
is there some php option I have to change ?
or something on the webserver ? (apache)

thank you
anatak
Link to comment
https://forums.phpfreaks.com/topic/11534-internationalization-with-utf-8/
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.