iPhone – A problem when Hebrew text is present in UIWebView

I have some Hebrew text stored in the database. When I get it & render it in UIWebview after applying some css (setting the background color and margin of the page) Good but the problem is that if I align the content in the webview correctly then the Hebrew content gets aligned correctly but in fact it is not the way it should be. I mean the way the RTL text should be displayed. The complete stop is displayed in the text On the right, as shown in the image below. I know that correctly aligned text will not show it like RTL text

It is not duplicate, I have completed the steps mentioned there, but still did not go.

I hope someone can help me display the text in the right way. If needed, I can add CSS code snippets. If you need any supporting code or images, please comment

You should set the direction in CSS: rtl or add dir=”rtl” attribute in HTML.

If you embed this text in a mixed language paragraph, you may also need to use unicode-bidi CSS properties.

I have some Hebrew text stored in the database .When I get & render it in UIWebview after applying some css (setting the background color and margin of the page) the text is fine but the problem is that if I align the content in the webview correctly then the Hebrew content gets aligned correctly But actually it’s not the way this should be. I mean the way the RTL text should be displayed. The complete stop is displayed on the right side of the text, as shown in the image below. I know that aligning the text correctly will not display it like RTL text < p>

It’s not duplicate, I have completed the steps mentioned there, but still haven’t gone.

I hope someone can help me show the text in the right way. If needed , I can add CSS code snippets. If you need any supporting code or images, please comment

You should set the direction in CSS: RTL or add in HTML dir = “rtl” attribute.

If you embed this text in a mixed-language paragraph, you may also need to use the unicode-bidi CSS attribute.

Leave a Comment

Your email address will not be published.