Encoding

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

Windows Arabic Encoding Cp1256 &#XXX;

in this post I will address the Arabic encoding problems.

any one may face one or more of the following scenarios:

  1. Retrieving Arabic data from database and wanna display it in a web page correctly.­
  2. Getting encoded Arabic data from web page and reading it correctly.

for the first Scenario  Retrieving Arabic data from database and wanna display it in a web page correctly.

Powered by Drupal - Design by artinet