Javamail problem with ñ characters in mail addresses

后端 未结 6 685
花落未央
花落未央 2021-01-19 01:16

I\'m having problems with parse method when usising ñ character:

essage.setRecipients(Message.RecipientType.TO, internetAddress.parse(\"somedir.         


        
6条回答
  •  我在风中等你
    2021-01-19 01:31

    Maybe your text editor isn't saving your sourcefile as UTF8 but as ASCII so your nya is getting messed up. Make sure you're saving it as UTF8. There may also be a compile option necessary to compile a .java file when its saved as UTF8. I haven't done it in a while but I remember it being that way.

提交回复
热议问题