Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

fonts - HTML Arabic text

I have some Arabic text that needs to be displayed in my php file - but the characters are not recognized.

How do I create a document with Arabic support?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Ensure that you're using UTF-8 charset all the way. UTF-8 supports all characters the world is aware of. Save the PHP file as UTF-8. Set the DB table charset to UTF-8. Set the DB connection charset to UTF-8. Set the HTTP response header charset to UTF-8. See also PHP UTF-8 cheatsheet.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...