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... 3 2140
On Apr 2, 7:32 am, "PHP Wooer" <abhijee...@gma il.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 :)
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.
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 troublemindedne ss 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, RichEdit, ListCtrl's,
etc?
I know how to print Japanese/Chinese characters in CDCs using the correct
code page and MultiByteToWideChar, but I cannot get even pinyin accent marks
or any Asian characters to display in MFC controls.
Do you have to...
|
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
double-byte characters can be held in the same DB without issue.
However, when holding two sets of DIFFERING double-byte characters
(i.e. Chinese and Japanese) there are issues.
Since Japanese has a superset of both Kanji and Katakana characters...
|
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 header, I found "zh"
is not standard. I found this line in apache2's default httpd.conf
# Simplified Chinese (zh-CN)
AddLanguage zh-CN .zh-cn
|
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 of unreadable characters on
my label.
Are there settings/properties for a label on a windows form to be able to
read japanese text? Is it when I raed the file that it gets screwed up (I
use fileOpen and LineInput)?
Looking for pointers here
|
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 longer see
the Asian fonts, but he could when the pages were on the other server.
Can anyone think of why a Windows 2000 user could once see Asian fonts
but cannot now?
These are the meta tags I used on those pages:
<meta...
| |
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 things like changing the formats of currency and calendars and
so on.
I am guessing the answer is quite simple given; I assume Unicode would
support all the chinese characters right? Ideally I'd like them to be
able to enter their own content...
|
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: Korean, Japanese,
and Chinese. Can anyone with experience in this area tell me of any
special considerations? Access 2003.
I've read here that the database sort order should be set to the
appropriate setting and then compacted.
I read too...
|
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 these mostly as
food for thought, but I do make my own
continent-by-continent recommendations at the bottom
of the email. (My own linguistic biases are also
disclosed at the bottom of the email.)
Nationality of various technologists who use...
|
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 server in my plan only support
the latin based character sets. So my chinese version and japanese version
can not be displayed correctly. But i dont want to switch my plan( that
means i need to pay much more). Is there anyway i can display chiese and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| | |