Converting Arabic text to displayable HTML codes

In this post I will present how to generate HTML codes for the arabic letters and the escap characters as well.

for each character there is HTML code representing this letter the following table represnts some mapping between letters and its HTML codes:

Character

 HTML Code

 ~

~ 

 أ

&#1571 

ش 

ش 

 ى

&#1610 

 =­

= 

So I have wrote a java utility class which is inspired from the following post
http://www.javapractices.com/topic/TopicAction.do?Id=96

the EscapeChars java class is attached

AttachmentSize
EscapeChars.java23.02 KB

Powered by Drupal - Design by artinet