5

I need to develop a website for a client in Myanmar. The website will obviously be in the Burmese language and they want it to be readable by people who do not have Burmese fonts on their machine.

I know wikipedia managed to do it here but I still haven't found how.

Will I have to write the Burmese characters using their HTML unicode codepoints? I have already found a library that manages to display Burmese characters if I provide the Unicode codepoint so I guess this is an option.

The other problem is that they want to insert Burmese text in a MySQL database. How am I going to store it? Using which encoding in MySQL? And then how to display it on machines that do not have Burmese fonts installed?

I hope I am clear and not too confusing.

dda
  • 6,030
  • 2
  • 25
  • 34
user1740815
  • 51
  • 1
  • 3

2 Answers2

4

The Wikimedia page mentioned in the question use the free Tharlon font as a downloadable font (via `@font-face'). It is a Unicode-encoded font, so you can enter the real Burmese characters in UTF-8 encoding. Depending on your authoring tools, you might need some extra utility in order to type characters, like Windows Character Map or my Full Unicode Input utility (select block Myanmar).

Jukka K. Korpela
  • 195,524
  • 37
  • 270
  • 390
2

Embedding custom fonts can be done, follow the below link

Custom font via CSS

Storing Burmese, you can use nvarchar or ntext or similar data types in your SQL to store

It will be stored as is and will be rendered as is.

Community
  • 1
  • 1
  • thanks. But how to enter text into my html file? Can I type it directly using a burmese keyboard, and the @font-face will display it correctly in the browser if the user does not have burmese font installed? – user1740815 Oct 12 '12 at 11:12
  • Html has to be set as UTF-8, and with burmese font installed on your machine you should be able to type in burmese, however if you want the font to be displayed properly you need the above link to download the font runtime. – Chandra Sekhar Walajapet Oct 12 '12 at 11:24