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.

4
  • I think if you add UTF-8 encoding in your meta tag and also in your db you're good to go. I did this for persian fonts and it worked Commented Oct 12, 2012 at 10:57
  • Your meta tag can be like this <meta charset="UTF-8"> Commented Oct 12, 2012 at 10:59
  • thanks! I assume the persian font was not installed on your machine? Did you also use @font-face for font replacement? Commented Oct 12, 2012 at 11:29
  • Well on that time there wasn't still css3, so no. But I think it will work, maybe not in older browsers... Commented Oct 14, 2012 at 12:38

2 Answers 2

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).

Sign up to request clarification or add additional context in comments.

Comments

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.

2 Comments

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?
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.