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 6185109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:39:19+00:00 2026-05-24T01:39:19+00:00

I have a Star Micronics TSP that supports CodePage 1001 Arabic, how do I

  • 0

I have a Star Micronics TSP that supports CodePage 1001 Arabic, how do I convert UTF-8 to that specific code page using C#?

Update: I found out that CodePage 864 is compatible with the printer, I tried sending hex values and I got the correct character,

myPrinter.PrintNormal(PrinterStation.Receipt, "\xFE8D");

I tried the following to convert a string to codePage 864:

Encoding enc = Encoding.GetEncoding(864);
byte[] arr = enc.GetBytes("السلام");

the byte arr values i’m getting after the encoding is {63,63,63,63,63,63} which is wrong in value and even the byte count is wrong because its a double byte character.

  • 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-05-24T01:39:20+00:00Added an answer on May 24, 2026 at 1:39 am

    Untested, but:

    String s = Encoding.UTF8.GetString(bytes);
    Encoding enc = Encoding.GetEncoding(1001);
    byte[] arr2 = enc.GetBytes(s);
    

    Of course, skip the first line if you are actually starting with a string, but since you mention UTF-8 I assumed binary.

    Obviously for large data volumes you might use a TextReader/TextWriter (each with encoding) instead – but same idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a star schema type data base, with fact tables that have many
I have a poll that has five 1-5 star ratings and I need to
I have started using Star UML application and its great. Is there a way
I have a Django site using a 5-star rating system for voting (I use
I have a around 8 jQuery star rating in my page: <input class= auto-submit-star
i am using jquery star rating plugin . I have a very problem: i
I have on my page image: @Ajax.ImageActionLink(Url.Content(~/Content/images/star-off.png), AddToFavourite, Добавить в избранное, img_add_to_favourite, null, new
I have this code: <div id=star-rating> <script type=text/javascript> $(function(){ $('#star-rating form').submit(function(){ $('.test',this).html(''); $('input',this).each(function(){ if(this.checked)
I'm adding a 5 star voting system to my new page. I have the
I have a Path (a star figure): <Path x:Name=NiceStar StrokeThickness=10 Stroke=#ff000000 StrokeMiterLimit=1 Data=F1 M

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.