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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:12:02+00:00 2026-05-31T09:12:02+00:00

I am trying to send a public key over SMS. So far I convert

  • 0

I am trying to send a public key over SMS.

So far I convert the byte[] to a String using:

String message = new String(ByteArray, "iso-8859-1");

The public key looks like this(when sent):

0I0
*†H†÷ 8 05 .:y&¯GìL5VØÞ<£  ßÄ´Q•4YŸß ÈW8‰³S›‰_ó4aÀ”[Ù u

but the recipient receives the message like this:

0I0
*?H?? 8 05 .:y&?GìL5VØ?<£ A ?ßÄ?Q?4Y?ß?EW8??S??_o4aA?[U u

Some of characters are being corrupted and replaced with “?” the phone does not recognise them.

Question:
Is there a way of converting “iso-8859-1” to just letters and numbers?
if not does anyone have any other idea?
(maybe another type of encoding?)

Please comment if you would like more details, Thank you.

  • 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-31T09:12:04+00:00Added an answer on May 31, 2026 at 9:12 am

    You can’t convert pure binary data into a String like this, because all the bytes don’t represent a valid character. Use base-64 to convert your byte array to a readable ascii string. Apache commons codec has a free implementation.

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

Sidebar

Related Questions

I'm trying to send a public key over a socket connection in Java. While
I'm trying to send RSA public key from C# server to iPhone, so I
I am trying to export a public key from openssl using python. I have
Im trying to send images over HTTP using HttpListener but some images come from
I am trying to send sms from java application using SMPPSim as SMS gateway
I am trying to send email using apache james with this code public static
I am trying to send an anonymous object over a web service. Is there
I'm trying to create a client-server program that send and receive a string (its
I'm trying to send data from a client application using jQuery to a REST
I am trying to use PostMessage to send a tab key. Here is my

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.