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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:20:32+00:00 2026-05-27T20:20:32+00:00

Currently I’m transferring a String across the network, using DataInput/OutputStream’s. The String I am

  • 0

Currently I’m transferring a String across the network, using DataInput/OutputStream’s. The String I am transferring needs to be converted into a byte array, to be decrypted.

However, since when the string was written using DataOutputStream.writeUTF(“foobar”), its byte array contains encoded Java Modified UTF-8 data, which stuffs up the encryption process.

How can I get the original bytes from the Java modified UTF-8 String?

  • 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-27T20:20:33+00:00Added an answer on May 27, 2026 at 8:20 pm

    Unicode has several variants, where s-with-^ can either be one character or two: s plus combining-^. Java has a Normalizer class to convert to one specific variant.
    See http://docs.oracle.com/javase/tutorial/i18n/text/normalizerapi.html
    or look immediately at the API.

    This requires that the original string adheres to one variant. One cannot take bytes and then interprete them as UTF-8, because there are illegal sequences. This was done to prevent recognizing a wrong byte/character when in the middle of a byte sequence.

    String normalizedString = Normalizer.normalize(s, Normalizer.Form.NFD);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, I am developing a product that does fairly intensive calculations using MS SQL
Currently I using the following code to get my JSON output from MySQL. <?php
Currently I'm trying to parse some html and return an array with the values
Currently we use log4net of version 1.2.10.0 and we should start using some 3rd
Currently we are using Trac . Tickets are good for tracking tasks and related
I am currently running into a problem where an element is coming back from
Currently, I'm using a complex countifs() statement: =countifs($B$2:$B$B1000,=&L7,'Sheet2'!$C$2:$C$1000,*)+ countifs($B$2:$B$B1000,=&L7,'Sheet2'!$D$2:$D$1000,*)+ countifs($B$2:$B$B1000,=&L7,'Sheet2'!$E$2:$E$1000,*)+ countifs($B$2:$B$B1000,=&L7,'Sheet2'!$F$2:$F$1000,*)+ countifs($B$2:$B$B1000,=&L7,'Sheet2'!$G$2:$G$1000,*) which is
Currently I am trying to render a .obj model that I loaded into vectors.
Currently I am using a pretty basic function to pre-load images: function preload(arrayOfImages) {
Currently, my Perl output is hard-coded to dump into the following Unix directory: 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.