Skip to main content

lwuit ves reversed arabic string

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
akshatha
Offline
Joined: 2011-04-07

Hi

I am using Lwuit to develop a j2Me application which has to work in english and Arabic
In english works fine but when i change the language to Arabic , the language cahanges but all the afrabic strings are reversed. How do i fix this issue
Any help

Thanks

Akshatha

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

If you are using a system font on a device that supports Arabic this will work seamlessly. If you are targeting some old phones that don't support bidi you can reverse the strings manually using Display.convertBidiLogicalToVisual
Bitmap fonts won't work properly with Arabic due to character shaping which is impractical to accomplish with bitmap fonts.