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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:52:21+00:00 2026-06-01T18:52:21+00:00

I am getting this string via a message broker (Stomp): João and that’s how

  • 0

I am getting this string via a message broker (Stomp):

João

and that’s how it suposed to be:

João

Is there a way to revert this in Java?!
Thanks!

  • 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-01T18:52:22+00:00Added an answer on June 1, 2026 at 6:52 pm
    U+00C3  Ã   c3 83   LATIN CAPITAL LETTER A WITH TILDE
    U+00C2  Â   c3 82   LATIN CAPITAL LETTER A WITH CIRCUMFLEX
    U+00A3  £   c2 a3   POUND SIGN
    U+00E3  ã   c3 a3   LATIN SMALL LETTER A WITH TILDE
    

    I’m having trouble determining how this could be a data (encoding) conversion problem. Is it possible the data is just bad?

    If the data isn’t bad, then we have to assume you are misinterpreting the encoding. We don’t know the original encoding and unless you’re doing something different, the default encoding for Java is UTF-16. I don’t see how João encoded in any common encoding could be interpreted as João in UTF-16

    Just to be sure, I whipped this python script up with no match found. I’m not entirely sure it covers all encodings or I’m not missing a corner case, FWIW.

    #!/usr/bin/env python                                                                                                                   
    # -- coding: utf-8 --                                                                                                                   
    import pkgutil
    import encodings
    
    good = u'João'
    bad = u'João'
    
    false_positives = set(["aliases"])
    
    found = set(name for imp, name, ispkg in pkgutil.iter_modules(encodings.__path__) if not ispkg)
    found.difference_update(false_positives)
    print found
    
    
    for x in found:
        for y in found:
            res = None
            try:
                res =  good.encode(x).decode(y)
                print res,x,y
            except:
                pass
            if not res is None:
                if res == bad:
                    print "FOUND"
                    exit(1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this json string info from the server : {members:[[sd2840d,Johny],[jkld341,Marry]]} So I store
I am getting a string hash like this: string content = a very long
I am getting this warning: Use of uninitialized value in eval \string\ at myscript.pl
I keep getting this error when I try to call Find() public void findTxt(string
I am getting this error in condiotional operator. string remarks=; AddDgvNew[6, i].Value==null?remarks=:remarks=AddDgvNew[6,i].Value.ToString();
i keep getting this error, The current value 'String.Empty' type is not compatible with
Having this line Cursor c = db.rawQuery(PRAGMA table_info(?), new String[] {tableName}); and getting this:
I am getting a StackOverflow Error in this code: EDIT [XmlAttribute(ID)] public string ID
I am getting JSON string from website. I have data which looks like this
I'm looking at implementing an app getting Twitter authorization via Oauth in Java. The

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.