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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:13:44+00:00 2026-06-13T07:13:44+00:00

I must show a text in an EditText area in Android. All works fine,

  • 0

I must show a text in an EditText area in Android.

All works fine, but if the text uses vowel chars that have accent,

for example :

"è", "ì", "à", "ò" "ù",

a code is shown, not the right character.

I simply use

 String   text= myEditText.getText().toString();

to get the String, I store the string in a file and use

myEditText.setText(text);

to set the String text in the EditText area when I retrieve the data in a second moment.

  • 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-13T07:13:45+00:00Added an answer on June 13, 2026 at 7:13 am

    I think the problem is during saving data to the file. If your file doesn’t take a utf8 character set when you save your data, then you read it back without those characters. Therefore make sure you save it correctly:

    String filePath = "/sdcard/utf8_file.txt";
    String UTF8 = "utf8";
    int BUFFER_SIZE = 8192;
    
    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filePath), UTF8),BUFFER_SIZE);
    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath), UTF8),BUFFER_SIZE);
    

    When you read it back, then you should be able to use setText() on your myEditText as you do now.

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

Sidebar

Related Questions

I need to show item id in a href tag ,but it must not
I am trying to test my show action, but I first must save an
I have an HTML select list which, when an item is selected, must show
I have a function that need to sum up from each input but at
I have a show view that displays the selected item from a list. Then
What must be done to get a WPF DataGrid with cells that wrap text
I have the following issue. I have an aspx file upload input that must
I am using this code to parse this date. It must show new date
I show to user a list of categories, he must choose one. How to
Must be missing something really obvious here but how do you change the size

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.