very little bug in comment notification

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/8/2009 8:12:37 AM
Gravatar
Total Posts 251

very little bug in comment notification

if the url contains some asian characters, the received email will be like this:

A comment has been posted to one of your posts at http://example.com
Follow this link to see the comment: http://example.com/???-facebook.aspx

HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 GTB5 (.NET CLR 3.5.30729)
HTTP_HOST: example.com
REMOTE_HOST: localhost
REMOTE_ADDR: localhost
LOCAL_ADDR: localhost
HTTP_REFERER: http://example.com/%e9%a1%94%e3%81%ae%e6%9c%ac-facebook.aspx

i mean, the first link is wrong, the encoding is not correct

this is just a very very minor issue

 

4/12/2009 7:18:04 AM
Gravatar
Total Posts 18439

Re: very little bug in comment notification

Hi,

By default email is sent using ASCII encoding, so non-ascii characters get displayed as ?.

You can change the encoding but it may or may not work with your smtp server.

<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />
<!-- example for Russian encoding
<add key="SmtpPreferredEncoding" value="koi8-r" />
-->

Note also, that even if the asian characters are encoded correctly, if the corresponding language is not inastalled on the user's machine then the user will also see ? for any characters it does not recognize. So you my send that same message to some users and it displays correctly but for others it does not.

Hope it helps,

Joe 

4/15/2009 4:02:39 PM
Gravatar
Total Posts 251

Re: very little bug in comment notification

thank you for the reply

i mean, the first link contains asian characters, but the second link has "url escape commands"

i don't know how to explain... i am not English

4/16/2009 5:14:53 AM
Gravatar
Total Posts 18439

Re: very little bug in comment notification

The second link is just the url referrer, it comes from:

Page.Request.ServerVariables["HTTP_REFERER"]

it must be already encoded by the runtime.

So what are you suggesting, should the first link be encoded too? 

4/17/2009 6:37:55 AM
Gravatar
Total Posts 251

Re: very little bug in comment notification

maybe

i did not played yet with encodings, maybe choosing thwe right encoding will fix the problem by itself

maybe the best solution is to change the encoding, as you pointed out

btw, the comments notifications are only received by the admin, so this is just a very very minor issue

You must sign in to post in the forums. This thread is closed to new posts.