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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:27:46+00:00 2026-05-26T06:27:46+00:00

I have a problem displaying the swedish characters åäö, read from my database, in

  • 0

I have a problem displaying the swedish characters “åäö”, read from my database, in my android application.

I have created the database using the sqlite3 command-prompt shell and the characters display correctly there. Also “åäö” which are not read from the database display correctly in the application.

I have searched everywhere and I can’t think of a solution. I’ve tryed different encodings on my database text but it doesn’t seem to work.

  • 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-26T06:27:47+00:00Added an answer on May 26, 2026 at 6:27 am

    You do not mention whether you are using javaScript/PhoneGap or Java to communicate with Sqlite in Android. // Yes, I know PhoneGap is using Java too.

    If you are using pure Java, you better check out the following link as there have been some updates to how Java handles utf-8 encoding. Effected versions are: JDK7, Open JDK 6, JDK 6 update 1, JDK5.0u17, and 1.4.2_19. As far as I understand, the Java version in Android follows the new regime.

    Reference: http://blogs.oracle.com/CoreJavaTechTips/entry/the_overhaul_of_java_utf

    You mention that you have tried different encodings for the database, however you do not mention whether or not you have done this through Android or from cmd/gui on your desktop.

    Anyhow, I will give you some pointers. You probably know all of this already, but I’ll include it anyway.

    HTML

    As Tapirboy mentioned in his comment, make sure you have set the character encoding for whatever view you are using. For HTML5 you can do that like this:

    <meta charset="UTF-8">
    

    CSS

    You should also make sure that you’ve got, and are using, an utf-8 compatible font in Android. The default DroidSans.ttf is capable of drawing utf-8 characters for all western languages.

    In CSS the font-family should be set to “Droid Sans” not “droidsans”.

    SQLITE

    Check character encoding in sqlite:

    PRAGMA encoding;
    

    Setting character encoding in sqlite:

    PRAGMA encoding = "UTF-8";
    

    JavaScript

    <script type="text/javascript" charset="utf-8">
    </script>
    

    As you, I’m developing Android applications in other languages than English. In my case it’s Norwegian and Thai.

    I have set the character encoding to utf-8 for Sqlite, webview and javaScript, using PhoneGap 1.1.0 and jQuery 1.6.4, and have no problems displaying Norwegian and Thai characters in Android Emulator.

    Hälsning från en norrbagge

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

Sidebar

Related Questions

I'm having a little problem displaying data from a database... I have two database
I have a problem with displaying data from mysql database. My client requires to
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
Im using an NSCalendar to display the week day, I have no problem displaying
I have a problem displaying scrollbars for my Flex Application... I tried a basic
I have a site using tamil language. I have no problem with displaying tamil
i have a problem here of displaying a date type from ms access db
I have problem with displaying all the triangles. I draw a triangle using mouse
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
My problem is that I have a user that is having a problem displaying

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.