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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:48:33+00:00 2026-06-13T16:48:33+00:00

I’m trying to get special characters like the German Umlaut (ä, ö, ü) working

  • 0

I’m trying to get special characters like the German Umlaut (ä, ö, ü) working with the Google App Engine, but sadly it dosen’t work. The Eclipse text file encoding is set to UTF-8, I use <meta http-equiv="content-type" content="text/html; charset=UTF-8"> in my index.html and the web.xml is also using encoding="utf-8".

If I compile my project locally, the characters are shown correctly. If I deploy it to the google appspot the characters are shown like this: ��. I checked also the Browser encoding, this is set to UTF-8, what did I miss?

Edit
Here is a example which works locally but not online:

<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>ä ö ü</title>
</head>
<body>
    <form name="profile" action="">
        <select name="p" size="1">
            <option value="1">ä</option>
            <option value="2">ö</option>
        </select>
    </form>
</body>

Edit2
I could isolate the problem. At the start I use the google channel api to communicate with the clients. Here I write the token to the users. This is the problem. Here is the code:

I guess I have to convert to UTF-8, but where?

FileReader reader = new FileReader("index.html");
CharBuffer buffer = CharBuffer.allocate(16384);
reader.read(buffer);
reader.close();

String index = new String(buffer.array());
index = index.replaceAll("\\{\\{ token \\}\\}", token);
index = index.replaceAll("\\{\\{ user \\}\\}", account);

resp.getWriter().write(index);

Why the characters are not shown correctly online?

  • 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-13T16:48:35+00:00Added an answer on June 13, 2026 at 4:48 pm

    FileReader always uses the platform default encoding. Use

    InputStreamReader(new FileInputStream("index.html"), "UTF-8")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a shell script to remove special characters, like {}()!,'
I am trying to parse a FTP URL that has some special characters like
Im trying to convert some special characters like ä , ö , ü ,
<trans-unit id=8> <source>Special settings for:</source> <target>Special settings for:</target> </trans-unit> I am trying to get
I am trying get Struts 2 and Tiles to work and I am using
Trying to get this expression to work, can someone look at it and tell
I have a string formatted like this: item_questions_attributes_abc123_id I'm specifically trying to get the
I am trying to substitute few special characters using sed/perl for which I am
I'm trying to understand how I should work with characters in URLs , this
I'm trying to add some users to my Ldap DB but I get some

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.