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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:55:22+00:00 2026-06-09T16:55:22+00:00

I am receiving data from JSON in arabic using UTF8 encoding \u0639\u0644\u0649 when displaying

  • 0

I am receiving data from JSON in arabic using UTF8 encoding

“\u0639\u0644\u0649”

when displaying it in textview its converted to “علي”

How I can get UTF8 back from this arabic text, assuming that I get arabic text input from keyboard

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-09T16:55:23+00:00Added an answer on June 9, 2026 at 4:55 pm

    Strings are always in Unicode, only byte arrays have an encoding.

    Your initial statement makes little sense. You are taking a String that contains three Arabic characters and converting it to a byte array in the default encoding, then converting these bytes back to a String assuming UTF-8 encoding.

    scala> val str = "\u0639\u0644\u0649"
    str: java.lang.String = ???
    
    scala> str.length
    res0: Int = 3
    

    I see no benefits in this over string = "\u0639\u0644\u0649". If you need the bytes that represent this string in UTF-8 encoding, you can call string.getBytes("UTF-8"), but it’s more likely that your communications library will take a string and let you specify the encoding somehow.

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

Sidebar

Related Questions

I am receiving data from state.jsp by JSON and displaying data in auto.jsp in
I have strange problem with receiving data from socket. On client im using air
I'm using net/http to pull in some json data from the Yahoo Placemaker API.
I'm receiving some data from the client in the form of json. I'm writing
I am receiving a JSON response from our server and it is compressed using
Am receiving null from json post using jquery. see my code below in order.
Im receiving quirky issues with my json data from my asp.net MVC WebApi coming
I am sending and receiving data using fsockopen and fwrite. My application receives the
What is the data actual path if I run 2 applications sending/receiving data using
I'm trying to set up jsTree to dynamically accept JSON data from django. This

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.