Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8087651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:50:48+00:00 2026-06-05T18:50:48+00:00

I’m working on a relatively simple Android app. I want it to have an

  • 0

I’m working on a relatively simple Android app. I want it to have an English version as well as a Hebrew version. (RTL Right to Left Alignment)

I have manually change the alignment to right in layout xml file. When a sentence contains digits (in the middle of it), the digits appear in a mirror view:
29 appears as 92, 21:45 appears as 54:12 and 2,000 appears as 000,2.

Also, when a sentence starts with digits or English characters, they get thrown to the end of the sentence messing it all up.

I think for android version 4.0.3 it supports Hebrew. I have check that in emulator.

So for older versions is there correct way to implement Hebrew?
Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:50:51+00:00Added an answer on June 5, 2026 at 6:50 pm

    I think that Android’s bidi analysis algorithm has some flaws. Unicode has two invisible, strongly directional characters that might help with these problems:

    • U+200E – left-to-right mark
    • U+200F – right-to-left mark

    For the digit order problem, try putting left-to-right marks (U+200E) on both sides of the digit sequence.

    Unicode also has the following bidi formatting codes:

    • U+202A – left-to-right embedding
    • U+202B – right-to-left embedding
    • U+202C – pop directional formatting (cancels the previous embedding or override)
    • U+202D – left-to-right override
    • U+202E – right-to-left override

    For the problem with English fragments in Hebrew text, it might be as simple as putting a right-to-left mark before the English. (Android’s algorithm may be under the impression that the paragraph is left-to-right since the first characters are English.) If that doesn’t work, perhaps try surrounding selected text with some combination of formatting codes. (I’d try left-to-right embedding followed by pop directional formatting. I’d also try right-to-left embedding around everything combined with selective explicit right-to-left embeddings.)

    The way these are supposed to affect text layout are defined by the Unicode Bidirectional Algorithm Unicode Standard Annex #9. However, if Android’s implementation is broken (and I suspect it is), the best you can do is trial-and-error until you get things looking right. Good luck.

    EDIT

    As far as code is concerned, here’s an example of how it might be done in Java:

    String text = "גרסה \u200e2.100\u200e זמינה";
    

    In XML, it might be:

    <string name="update_available">גרסה &#x200e;2.100&#x200e; זמינה</string>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am writing an app with both english and french support. The app requests
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I want use html5's new tag to play a wav file (currently only supported
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.