• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 45
  • Last Modified:

printing arabic

dear experts

i have a text in utf 8 i would like to print it to a bluetooth printer and use related code page for arabic(864 or1256).

below is the part of my code is zamarin:
 List<byte> list = new List<byte>();
 list.AddRange(CenteredText("Hello ").ToList());
 string m_text = "صباح ";
 list.AddRange(CenteredText(m_text).ToList());
list.AddRange(CenteredText("End ").ToList());
would you please help
0
pamela rizk
Asked:
pamela rizk
1 Solution
 
hdhondtCommented:
I know nothing about Xamarin (or Arabic), but you may want to start by looking at these links about Unicode fonts:

https://developer.xamarin.com/recipes/ios/graphics_and_drawing/core_text/draw_unicode_text_with_coretext/
https://developer.xamarin.com/api/property/Java.Lang.Character+UnicodeBlock.Arabic/

The thing to remember is that Arabic is not simple ASCII text, it is Unicode text, so you need to figure out how Xamarin handles that.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now