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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:08:11+00:00 2026-06-07T14:08:11+00:00

As CP037 encoding is not supported by BlackBerry by default does anyone know if

  • 0

As CP037 encoding is not supported by BlackBerry by default does anyone know if there is any ready made libaray that I would be able to use? I’ve had a look online and I can’t seem to see anything. Is the only option to write one myself? Does anyone have any tips on how to do such a thing?

  • 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-07T14:08:13+00:00Added an answer on June 7, 2026 at 2:08 pm

    Writing your own bytes -> String decoder seems pretty straightforward, as the encoding has no more than 256 characters. Just turn the table from Wikipedia into a switch statement, and accumulate the resulting characters into a String.

    byte[] rawCP037data = getEbcdicDatabytes();
    StringBuffer buf = new StringBuffer();
    for(int i = 0; i < rawCP037data.length; i++) {
        buf.append(convertCP037toUnicodeChar(rawCP037data[i]));
    }
    String decodedString = buf.toString();
    
    char convertCP037toChar(byte b) {
        switch (b) {
        case 0x99:
          return 'r';
        case 0xAB:  // upside down question mark
          return 0x00BF;
        // TODO! fill out the rest of the table here
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I got a site that uses ISO-8859-1 encoding and I can't change that.
I need to display a document, which is in Cp037 character Encoding, in JTextArea?
I know that I can do the following: >>> import encodings, pprint >>> pprint.pprint(sorted(encodings.aliases.aliases.values()))
I noticed that most of the time, when using some encoding other than 'the
Given this example, I get the error that follows: print u'\2033'.translate({2033:u'd'}) C:\Python26\lib\encodings\cp437.pyc in encode(self,
Following code has to be used in the main-function, but I don't know how
Have I got that all the right way round? Anyway, I am parsing a
Here's a little program: #!/usr/bin/env python # -*- encoding: utf-8 -*- print('abcd kΩ ☠
I want a shell that supports Unicode on Windows. PowerShell as it ships doesn't
I am receiving web response in different encoding using python and my expected output

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.