• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

code to handle arabic shaping text  RSS feed

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to handle arabic shaping text but it gives original ucs code of block letters

I have a code like this-

public static String stringToHex(String pData) {
StringBuffer encodedData = new StringBuffer();

StringBuffer sBuff = new StringBuffer(pData);
for (int i =sBuff.length()-1; i >=0 ; i--) {
char ch = sBuff.charAt(i);
int chVal = (int)ch;

// if this is a special character (ie. > 8 bits), encode it
if (chVal > Byte.MAX_VALUE) {
} else {

return encodedData.toString();

I got-> كم
Expected Output-> ﻚﻣ

Please Help Me..
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!