faqts : Computers : Programming : Languages : PHP : Common Problems : Internationalization

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 3 people (0%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

How can I isplay Russian Cyrillic characters and Spanish on the same page.

Jan 6th, 2005 14:20
Nicolas BONARDELLE, Steven Wolock,


Use UTF-8 encoding for this page.
UTF-8 is a kind of superset for almost all encodings used on the planet.
You then just have to type the cyrilic characters using your preferred
editor (which handles UTF-8) along with the spanish one.

Here's a sample page containing different character scripts :
http://www.columbia.edu/kermit/utf8.html

If you have problems with detection of the encoding (charset) of your
page, you may include a <meta> tag to specify it, like in the following
excerpt from the above page (though this is not the better solution,
this can help) :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>UTF-8 Sampler</title>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
 ...