Is there a way to stylize text on an HTML page such that it automatically uses a different font for different languages? My website uses both English and Arabic. I\'d like t
If you are using UTF-8 encoding, the contents should come out in the correct character encoding, but will still be using the same font.
You'd need to assign a CSS class to the elements containing the Arabic. CSS cannot detect this by itself.
You could do this using JavaScript to perform this task at load-time be inspecting elements and determining the character range used.