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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:52:04+00:00 2026-05-25T18:52:04+00:00

I got a problem when inserting unusual characters into MongoDB. The characters are as

  • 0

I got a problem when inserting unusual characters into MongoDB.

The characters are as follows: é è í ì á à… etc

basically, characters that are mostly used in latin countries.

when I insert it by script (since if I try it in the console it replies “non-utf-8 character”) it does it just fine, well, it adds it to the collection, but with some weird characters.

if I do a find, with let’s say, “Olá” and I have a field that gets searched with “Olá” but with those weird characters, it replies the data on the field I want just fine…
however, if in that field there is some sort of character which isn’t your standard english chartype, it displays something like this:

�til?

Is there any way that I can handle this?

I’m using Websphere Portal server, the PortletView file outputs in UTF-8, the servlet handles the inputted data to encode it in UTF-8 when sending to the db for the query, and it also handles the data it retrieves from the DB into UTF-8 (just to be sure).

Thanks in advance.

  • 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-25T18:52:05+00:00Added an answer on May 25, 2026 at 6:52 pm

    Check that a servlet filter isn’t causing the request to use the incorrect character encoding. This can be caused by calling one of the getParameterXXX() family of methods on the ServletRequest before setting the request’s character encoding to UTF-8.

    The servlet spec states that ISO8859-1 is used by default. See SRV.3.9 Request data encoding.

    Also make sure that the response uses the correct content type (with encoding). As posted above in comment:

    String contentType= "text/html;charset=UTF-8";
    response.setContentType(contentType);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a problem where I'm inserting data into a database. It's returning that
I got a strange issue. I am inserting a new object into my Core
I got problem inserting the string AM/PM to my mySQL table $timeFormat = mysql_real_escape_string($_POST['timeFormat']);
ive got no problem with inserting the transaction after puchased is completed. the problem
I got a problem when inserting a data. When I click the add button
I'm working on a online game. I got some problems with inserting new data
Hy, I got an intersting problem which I stumbled upon. When I double-click a
i got problem with my code and hopefully someone able to figure it out.
I've got problem with connecting to MySQL database on my freshly installed Windows 7
Got a problem with ADOMD.NET 8.0, SQL2008 and our app. It isn't giving us

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.