473,395 Members | 1,530 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,395 software developers and data experts.

UTF-8 Email with links

Hi all,

I have an email in utf-8 encoding. In the content of the email, I need
to send a link in which the filename is in utf-8 string...just like
this..

$content = "<a href=\"http://xxxxxx/".$filename."\"">Link to file</a>";

however, the link can not be correctly passsed and it automatically
encodes it into %xx format. How to solve the problem?

I've tried urlencode($filename) and urldecode($filename) but cannot fix
the problem... Need Help~Thx

Dec 7 '05 #1
2 1377
kamlai wrote:
I have an email in utf-8 encoding. In the content of the email, I need
to send a link in which the filename is in utf-8 string...just like
this..

$content = "<a href=\"http://xxxxxx/".$filename."\"">Link to file</a>";

however, the link can not be correctly passsed and it automatically
encodes it into %xx format. How to solve the problem?
Maybe they do get across as-is, just like the same characters outwith
URLs would, but your MUA percent-encodes raw non-US-ASCIIs in anything it
considers a URL?
I've tried urlencode($filename) and urldecode($filename) but cannot fix
the problem...


Have you thought of percent-encoding them yourself *before* sending the
e-mail? or, sorry, is that what you're saying you've tried?

--
Jock
Dec 11 '05 #2
ka****@gmail.com wrote:

I have an email in utf-8 encoding. In the content of the email, I need
to send a link in which the filename is in utf-8 string...just like
this..

$content = "<a href=\"http://xxxxxx/".$filename."\"">Link to file</a>";

however, the link can not be correctly passsed and it automatically
encodes it into %xx format. How to solve the problem?
You allow it to encode into the %xx format. URLs are not supposed to
contain any characters outside of 20 - 7F.
I've tried urlencode($filename) and urldecode($filename) but cannot fix
the problem...


What operating system are you using? Are you sure the operating system
allows utf-8 filenames?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Dec 12 '05 #3

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

Similar topics

9
by: lawrence | last post by:
Someone on www.php.net suggested using a seems_utf8() method to test text for UTF-8 character encoding but didn't specify how to write such a method. Can anyone suggest a test that might work?...
4
by: Alban Hertroys | last post by:
Another python/psycopg question, for which the solution is probably quite simple; I just don't know where to look. I have a query that inserts data originating from an utf-8 encoded XML file....
12
by: Mike Dee | last post by:
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I...
38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
6
by: jmgonet | last post by:
Hello everybody, I'm having troubles loading a Xml string encoded in UTF-8. If I try this code: ------------------------------ XmlDocument doc=new XmlDocument(); String s="<?xml...
6
by: archana | last post by:
Hi all, can someone tell me difference between unicode and utf 8 or utf 18 and which one is supporting more character set. whic i should use to support character ucs-2. I want to use ucs-2...
7
by: Jimmy Shaw | last post by:
Hi everybody, Is there any SIMPLE way to convert from UTF-16 to UTF-32? I may be mixed up, but is it possible that all UTF-16 "code points" that are 16 bits long appear just the same in UTF-32,...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
4
by: =?ISO-8859-2?Q?Boris_Du=B9ek?= | last post by:
Hi, I have an API that returns UTF-8 encoded strings. I have a utf8 codevt facet available to do the conversion from UTF-8 to wchar_t encoding defined by the platform. I have no trouble...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.