user3120196
user3120196

Reputation: 23

Encoding UTF-8 for Czech chars

I want to ask you, as a beginner, what basic settings for the document encoding are you doing with UTF-8?

An example how I do it below and am asking about repair if something is wrong. I want to rely on all devices in different browsers with different user settings will render the text as it should, so I will do the following:

I'm concerned mainly about the Czech characters

Am I right or isn´t it that simple if I expect cooperation between HTML, PHP or JS, maybe MySQL? Thank you for your answers and sorry for incomplete English.

Upvotes: 1

Views: 5656

Answers (1)

Markus Kottländer
Markus Kottländer

Reputation: 8268

If you read text from a Database make sure that it is set to utf8 and that the columns are as well. Then you can use SET NAMES UTF8 to make sure the connection encoding is utf8 as well. Just make it your first query to the databse.

Upvotes: 1

Related Questions