seedg
seedg

Reputation: 21965

Inserting Chinese Meta Tags

I have a multilingual site and I am having a problem inserting Chinese meta tags. These are transformed into question marks.

Is there a way how I can achieve this?

Many thanks

--EDIT--

The table storing the SEF Urls is in the latin1_swedish_ci character set. How can I change this single table to utf8_general_ci without breaking the URLs?

Many thanks!

Upvotes: 0

Views: 3806

Answers (6)

Tom
Tom

Reputation: 1115

Are you retrieving the data from a database? If so ensure that you connection character set is also set to utf-8. In MySQL for example you would need to issue this query before any other:

SET NAMES 'utf8';

Upvotes: 1

Pekka
Pekka

Reputation: 449623

Maybe your Browser - or more exactly, the font you selected to display the page - doesn't support chinese characters. What system and browser is this on?

Upvotes: 0

Trick
Trick

Reputation: 3849

Use numeric character references.

EDIT

wiki numeric character references

Convert Chinese characters to Unicode

Upvotes: 1

Quentin
Quentin

Reputation: 944020

Make sure that:

  • The character encoding you are using includes those characters (UTF-8 is safe)
  • Your editor is configured to use that character encoding
  • Your database (if these details are stored in one) is configured to use that encoding
  • Your webserver is configured to output a charset parameter on the Content-type header (and it uses the correct encoding)
  • Your browser is not configured to ignore the specified encoding

Upvotes: 4

jerebear
jerebear

Reputation: 6655

Have you checked your character set in your document headers? I usually use UTF-8 to achieve chinese character sets.

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

If you're using a program like dreamweaver, make sure your files are actually being SAVED in the correct character set as well. We had a problem where characters in a dreamweaver file were coming through as ???? because the editor itself was set to iso-8859-1

Upvotes: 0

Peter Stuifzand
Peter Stuifzand

Reputation: 5104

It could be that you need to encode the Chinese characters to HTML entities, or specify a character set.

Upvotes: 0

Related Questions