Go Back  IT Forums > Software > Programming
User Name
Password
Reply
 
Thread Tools Search this Thread Display Modes

Japanese chars not visible in Outlook new message posted thru mailto:
  #1
Old 09-20-2006, 11:11 PM
kavi
Junior Member


kavi is offline
kavi's Info
Join Date: Sep 2006
Posts: 1
Default Japanese chars not visible in Outlook new message posted thru mailto:

-- I am able to save japanese text into HTML(saved as unicode file) and
open it in IE and view the jap chars.
-- I am able to open outlook new message and copy japanese chars into
the subject as well as body.
BUT, I am unable to give the subject line as Japanese text when using
javascript/html tag - mailto:... It opens new message with Boxes or
question marks.
Any help?

<< EXAMPLE HTML>>

<html>
<head>
<Title>Japanese Test Page </Title>
<meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS"
/>
</head>
<body lang=EN-US style='tab-interval:.5in'>
This is Japanese Text: さようなら
<script Language="javascript">
<!--
document.location='mailto:?subject=さようなら &body=さようなら';
-->
</script>
</body>
</html>

Reply With Quote
Japanese chars not visible in Outlook new message posted thru mailto:
  #2
Old 09-21-2006, 03:38 AM
Jukka K. Korpela
Junior Member


Jukka K. Korpela is offline
Jukka K. Korpela's Info
Join Date: Oct 2004
Posts: 3
Default Japanese chars not visible in Outlook new message posted thru mailto:

kavi wrote:
Quote:
BUT, I am unable to give the subject line as Japanese text when using javascript/html tag - mailto:... It opens new message with Boxes or question marks.


First, you shouldn't use the ?Subject hack, even though it is now formally
part of the mailto: protocol. Second, if you use it, the string - as
anything in a URL - should be % encoded according to the specifications.
That is, all characters beyond ASCII, and even some ASCII characters in some
contexts, should be UTF-8 encoded and then each octet represented as %xx
where xx is the two-digit hexadecimal value of the octet.

Even that way, most bets are off, since the ?Subject hack is poorly
implemented; when you throw such a thing at an email program minding its own
business, it may well fail to process the character properly.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Design by vBStyles.com


Top Contact Us - IT Forums - Archive - MyLounge Top
MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service