Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > text file uploa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1398 of 1478
Post > Topic >>

text file upload ... work around wide characters?

by mhiggins@[EMAIL PROTECTED] (Michael Higgins) May 23, 2007 at 12:06 PM

Hello, List-ers --

I've come across a problem, unsure where to ask, so subscribed here. I
upload a file through a browser. It's a '.txt' file and it comes as
text/html. 

However, I've found some hyphen and single-quote like characters that are
in
this text file are from a higher codepoint... or something. What _seems_
to
happen is the browser is stripping them and my script isn't getting all
the
info to dump into my database.

Looking at the headers going from my browser, it shows the whole of the
file, less the ?wide? chars. On the other end, Apache/CGI sees the end of
the file early, or something. 

Could it be that the browser gets a null byte, or something in this 'text'
file, and truncates the file?

And... has anyone here figured this one out? I can't be the first to have
this kind of problem. ;-) 

Cheers,

 
Michael Higgins
 




 3 Posts in Topic:
text file upload ... work around wide characters?
mhiggins@[EMAIL PROTECTED  2007-05-23 12:06:03 
RE: text file upload ... work around wide characters?
mhiggins@[EMAIL PROTECTED  2007-05-23 14:16:27 
Re: text file upload ... work around wide characters?
mumia.w.18.spam+nospam@[E  2007-05-23 17:07:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:59:43 CDT 2008.