English 中文(简体)
页: 1 具有非标准UTF-8特性的亚洲开发银行
原标题:mongoDB with non-standard UTF-8 characters

I got a problem when inserting unusual characters into MongoDB.

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

基本上,这些特性大多用于沿岸国。

当我用文字插入时(因为如果我只想在座时回答“非图八特性”),那就只是罚款了,但增加了收件,但有些杂草。

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?

我是否能够这样做?

使用Websphere门户服务器、UTF-8的PortletView文档产出的Im,该服务器处理输入数据,以便在UTF-8向电离站发送电离板时将其编码,它还处理从亚洲开发银行检索到UTF-8的数据(可以肯定)。

提前感谢。

最佳回答

检查一个服务器过滤器是导致要求使用不正确的特性编码的 t。 可以通过在将请求的特性编码编码到UTF-8之前,在<代码>ServletRequest上打上<代码>的>方法。

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

还确保答复使用正确的内容类型(编码)。 如以上评论所示:

String contentType= "text/html;charset=UTF-8";
response.setContentType(contentType);
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签