473,378 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Chinese, Japanese font issues with mail

Can anyone provide me the simplest working solution to send mails in a
multilingual website
that too with no issues relating to display of characters, as of now I
have find a solution which is
working quite well, which is to paste a japanese or chinese lang.
sentences to an editor like
dreamweaver in design mode and paste the generated char code eg. #1045
to the database table
to create a mail template, this is working fine but a labour job. Can
you provide me with a more
intelligent solution? such as by setting the charSet or something else
as of I am using the phpmailer class for the purpose...

Apr 2 '07 #1
3 2110
On Apr 2, 7:32 am, "PHP Wooer" <abhijee...@gmail.comwrote:
Can anyone provide me the simplest working solution to send mails in a
multilingual website
that too with no issues relating to display of characters, as of now I
have find a solution which is
working quite well, which is to paste a japanese or chinese lang.
sentences to an editor like
dreamweaver in design mode and paste the generated char code eg. #1045
to the database table
to create a mail template, this is working fine but a labour job. Can
you provide me with a more
intelligent solution? such as by setting the charSet or something else
as of I am using the phpmailer class for the purpose...
Why don't you make html-files for each language you need. This html
file you read by fopen() and fread() and then send by using whatever
function you want. You must also set content-type to text/html. This
way you may totally customize your display to the user, and specify
whatever charset etc. you want in meta tags.
I hope you are not a spammer that's looking for a better way of
spamming; if that's true, I regret for my trying to help :)

Apr 2 '07 #2
Why don't you make html-files for each language you need. This html
file you read by fopen() and fread() and then send by using whatever
function you want. You must also set content-type to text/html. This
way you may totally customize your display to the user, and specify
whatever charset etc. you want in meta tags.
I hope you are not a spammer that's looking for a better way of
spamming; if that's true, I regret for my trying to help :)
================================================== ===================
Thanks and be sure I am not a spammer, but this is not the kind of
solution that I was expecting. I want something that I can setup in
my database so the admin can modify the text whenever required
and will not have to mingle with .html files.

Apr 2 '07 #3
On 2007-04-02 15-07-59, Darko wrote:
Why don't you make html-files for each language you need.
E-Mails are not destined to carry the troublemindedness of HTML. They're
pure and clean. Just like the holy word of text/plain... Err... mhh... I
guess I played too much C&C3 and got brainwashed by Kane... -g-

Just use text/plain and set a proper encoding. UIF-8 would solve your
problems, as you can address every code point the unicode currently
contains. (For more information see <http://www.unicode.org/>)

This includes the kanji and the kana.

You should use a special editor for writing the messages though. Is should
a) support UTF-8 and
b) not add the byte order mark in front of the files, as PHP doesn't
understand it and sends it as data... resulting in output and eventually in
"Cannot send header ..." warnings.

UTF-8 would also solve your problem, if you are actually sending HTML
mails. However, you should still strongly consider adding a text/plain
version, too. I know that *I* dislike HTML mails and I know lots of people
who do so as well.

HTH
Apr 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim E. | last post by:
Using VC++ on an application for English Win 95/98 thru XP, how can I display multi-byte characters (Asian languages or roman characters with accent marks) in standard MFC controls like CEdit,...
1
by: GPenn | last post by:
SQL 2000, latest SP. We currently have the need to store data from a UTF-8 application in multiple languages in a single database. Our findings thus far support the fact that single-byte and...
6
by: Zhang Weiwu | last post by:
Hello. I am working with a php software project, in it (www.egroupware.org) Chinese simplified locate is "zh" while Traditional Chinese "tw". I wish to send correct language attribute in http...
3
by: Benoit Martin | last post by:
in my windows app, I have some japanese text that I load from a text file and display on a label. No matter what type of encoding I try to use on the text file, the text always comes up as a bunch...
4
by: Leora Wenger | last post by:
We moved some pages of Japanese, Korean and Chinese from one server to another. In doing so, the users with Windows XP could still see the Asian fonts. However, a user with Windows 2000 could no...
12
by: Steven Nagy | last post by:
Hi all, I have to do a website in chinese! Basically I just need to know how to output chinese characters. I am assuming its very easy, but have never done it before. I can however do simple...
4
by: wheel | last post by:
I have already built in support for multiple languages in some of my applications, but so far they have only used Western languages (English, Spanish, etc). I need to add some Far East languages:...
12
by: Steve Howell | last post by:
The never-ending debate about PEP 3131 got me thinking about natural languages with respect to Python, and I have a bunch of mostly simple observations (some factual, some anecdotal). I present...
2
by: Victor | last post by:
Hi guys i am facing a real big problem here. I bought a hosting plan and try to build my own website. my website has several language version(chinese english japanese). but i just found out the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.