English 中文(简体)
错误编码特殊字符
原标题:Error encoding special characters

有点奇怪的问题( 至少对我来说是这样 ) 。 在我圣杯的应用程序中, 我发送电子邮件时会有一些特殊字符( 东欧洲字母 ) 。 从数据库获得的带有特殊字符的字符串值是有效的, 但是在应用程序中我创建的字符有 ” 。

更令人困惑的是,在发展过程中,一切都很好, 但当我在Tomcat实例中应用应用程序时, 我得到了问题标记。

我安排了所有东西来编码UTF-8 至少我该走了 显然我漏掉了一些东西

问题回答

It sounds like you don t have the operating system language packs installed for the languages you re trying to display.

While it appears as if the files themselves are saved properly, and the JVM understands them because the character sets are supported, the GUIs you re using can t display the corresponding encoding because the underlying OS isn t displaying them.

I ve experienced similar problems and the solution that worked for me was to turn on the corresponding languages in the OS.





相关问题
Message charset

How do I get the charset from javax.mail.Message object?

Adding "charset" to all ASP.NET MVC HTTP responses

Is there an easy way to specify all "normal" views is an ASP.NET MVC app are to have charset=utf-8 appended to the Content-Type? View() lacks an override that allows you to specify the Content-Type, ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Special characters are not supported

I am having problem to display the special characters like ’, é in Firefox and IE. But these characters are supported for the local server. I have used the following <!DOCTYPE html PUBLIC "-...

找到一份所有编码的一览表。

我正在撰写一篇文章,试图将 by铁丝带入第2.6条的许多不同的编码。 是否有办法获得一份清单,列出我可以重复的可用编码?

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

What text encoding to use?

I need to setup my PostgreSQL DB s text encoding to handle non-American English characters that you d find showing up in languages such as German, Spanish, and French. What character encoding should ...

Flash coding problem

I got some information in my Flash application from a php script. Flash displayed it as: Radioart=Mia Frejman - Ett hjärta - Ett Hjärta The string contain some Swedish symbols. How I can output ...

热门标签