SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Charset

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Mar 31, 2008 4:52 pm    Post subject: Charset Reply with quote

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
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Apr 01, 2008 12:59 pm    Post subject: Reply with quote

I guess you're talking bout progress bar?
Then in upload_status.cgi replace
Code:
print"Content-type: text/html\n\n";

with
Code:
print"Content-Type: text/html; charset=utf-8\n\n";
Back to top
View user's profile Send private message Visit poster's website AIM Address
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Apr 01, 2008 8:26 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Apr 02, 2008 5:26 am    Post subject: Reply with quote

Ok. In upload.cgi find
Code:
Subject: $subject
Content-Type: text/html


and replace "Content-Type: text/html" line with
Code:
Content-Type: text/html; charset=utf-8
Back to top
View user's profile Send private message Visit poster's website AIM Address
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Apr 18, 2008 3:37 pm    Post subject: Reply with quote

Hello

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

Some suggestion?

Thanks
Back to top
View user's profile Send private message
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Apr 18, 2008 6:05 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Apr 21, 2008 7:46 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website AIM Address
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Apr 21, 2008 8:18 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
jimrws



Joined: 05 Feb 2008
Posts: 20

PostPosted: May 29, 2008 9:04 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: May 29, 2008 9:16 am    Post subject: Reply with quote

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

Code:
<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:
) or die "Error creating multipart container: $!\n";

and add lin e below:
Code:
$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
Back to top
View user's profile Send private message Visit poster's website AIM Address
jimrws



Joined: 05 Feb 2008
Posts: 20

PostPosted: May 29, 2008 9:18 am    Post subject: Reply with quote

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

This seems to work for me

Content="text/html; Charset=iso-8859-2"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group