• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

UTF-8 bug on messages? Just ??? ??????? ??? sent to email

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Having updated all the /mail/ templates I've discovered that, even when encoded as UTF-8, these files are not loaded as UTF-8, and my guess is they are ???ified when loaded from disk (and cached?)

I'll look into the code, but if you are not specifying an encoding when reading the bytes then this is the bug.

The subject works (since it is getting the encoding from the database, which I have setup in my.conf)

Am I right in my suspicions?

Cheers
[originally posted on jforum.net by jforumapp]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most likely you need to set your mail.charset config property to allow for UTF-8. This is passed to the javax.mail.internet.MimeMessage class to define how the text is use. See the jForum Spammer class code for more details.
[originally posted on jforum.net by monroe]
 
Whatever you say buddy! And I believe this tiny ad too:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic