XUpload - Charset

Message
Author
Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

Charset

#1 Postby Ugly Mau » Mar 31, 2008 4:52 pm

it is possible to indicate the charset of the text? As an example UTF-8
I have problems with letters àèò

I use xupload pro 2.6

thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 01, 2008 12:59 pm

I guess you're talking bout progress bar?
Then in upload_status.cgi replace

Code: Select all

print"Content-type: text/html\n\n";
with

Code: Select all

print"Content-Type: text/html; charset=utf-8\n\n";

Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

#3 Postby Ugly Mau » Apr 01, 2008 8:26 pm

Sorry, my question was not much precise one.

My problem is in the shipment of the data, some letters does not
succeed to recover them after the shipment of the form.
it is possible to indicate as the text sended in the form must be
codified?

Thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Apr 02, 2008 5:26 am

Ok. In upload.cgi find

Code: Select all

Subject: $subject
Content-Type: text/html
and replace "Content-Type: text/html" line with

Code: Select all

Content-Type: text/html; charset=utf-8

Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

#5 Postby Ugly Mau » Apr 18, 2008 3:37 pm

Hello

The problem persists, also planning the chartset utf8 them the characters "à" do not come recovered from the form

Some suggestion?

Thanks

Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

#6 Postby Ugly Mau » Apr 18, 2008 6:05 pm

To understand the problem, experienced to put this text "qwerty èkààyhò" in this page that I got ready yourselves, the letters "à" go out with "?"

http://www.aziendevenete.com/prova_cgi/form.php

Thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#7 Postby PilgrimX182 » Apr 21, 2008 7:46 am

Ugly Mau wrote:Hello
The problem persists, also planning the chartset utf8 them the characters "à" do not come recovered from the form
"do not come recovered from the form" where? in email or on results page or on download page?

Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

#8 Postby Ugly Mau » Apr 21, 2008 8:18 am

in the page where recovery the data, than then I insert in the
database.

In the example that I have put, recovery the data with

echo $_post['text_form' ];


Thanks

jimrws
Posts: 21
Joined: Feb 05, 2008 8:29 am

#9 Postby jimrws » May 29, 2008 9:04 am

I'm having exactly the same problem but I need the special characters to appear in the emails.

My sendmail code looks like this:

To: $mail_to
From: $mail_from
Subject: $subject
Content-Type: text/html; charset=utf-8

I'm getting Asian characters instead:
Financi貥
Fran硩s
T鬺

This should read:
Financière
Français
Tél

Can someone help?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#10 Postby PilgrimX182 » May 29, 2008 9:16 am

Do you have META tags for UTF-8 on upload page?

Code: Select all

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
And if you need utf-8 in admin notification email, in upload.cgi find

Code: Select all

) or die "Error creating multipart container: $!\n"; 
and add lin e below:

Code: Select all

$msg->attr("content-type.charset" => "UTF-8");
..this is for XUpload 3.0
Last edited by PilgrimX182 on May 29, 2008 9:18 am, edited 1 time in total.

jimrws
Posts: 21
Joined: Feb 05, 2008 8:29 am

#11 Postby jimrws » May 29, 2008 9:18 am

Ah, its ok, I think I might have fixed this.

This seems to work for me

Content="text/html; Charset=iso-8859-2"