New topic: 

Fileupload, swedish chars

<http://forums.realsoftware.com/viewtopic.php?t=43292>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        julgus_sweden          Post subject: Fileupload, swedish 
charsPosted: Fri Mar 23, 2012 5:48 am                         
Joined: Wed Dec 05, 2007 5:17 am
Posts: 470
Location: Sweden                Ok, the story continues.... I hate the dots 
above the letters..  

I upload some files. The filenames (containing swedish chars) are shown 
correctly when shown using msgbox. But ends up as rubbish in the database. I 
then try to convert the encoding of file.name (uploaded) but with no success.

1. When I ask which encoding it is I get US ASCII (?)
2. When I try and convert from US ASCII to UTF8 I get rubbish
3. When I try to convert from ISOLatin1 to UTF8 which I done earlier with 
success I end up with rubbish.

These neverending charconversions have now ruined both my timetable for this 
project aswell as the benefits using web apps as a RAd environment.. I have 
never had similar problems in any other environment.      
_________________
iMac 27" i7, Macbook 13.3,Macbook PRO 15, Mac mini, iPhone 4s & REALStudio...
http://www.precis-it.se  
                             Top                 NaNdummy          Post 
subject: Re: Fileupload, swedish charsPosted: Fri Mar 23, 2012 6:24 am          
               
Joined: Thu Dec 01, 2011 2:13 pm
Posts: 103                julgus_sweden wrote:I get rubbish

Try to upload other files. Is the content ok?      
_________________
Mac OS X 10.3-10.7
Windows 2000 (I know it sucks)
Windows Server 2007  
                             Top                 julgus_sweden          Post 
subject: Re: Fileupload, swedish charsPosted: Fri Mar 23, 2012 6:45 am          
               
Joined: Wed Dec 05, 2007 5:17 am
Posts: 470
Location: Sweden                the content of the file is ok -  it's the 
filename when I try to save it in a database that become rubbish if it contains 
swedish chars (sorry if I wasn't clear about this)      
_________________
iMac 27" i7, Macbook 13.3,Macbook PRO 15, Mac mini, iPhone 4s & REALStudio...
http://www.precis-it.se  
                             Top                 Chrispc88          Post 
subject: Re: Fileupload, swedish charsPosted: Fri Mar 23, 2012 7:17 am          
               
Joined: Sun Apr 16, 2006 3:16 am
Posts: 16                Can you check to see what the file is after it is 
uploaded and before it is saved to the database so that you can be sure if the 
problem is coming from WE or from your DB?  Can you provide an example of a 
filename that is causing a problem, and what the resulting "rubbish" name is?   
   
_________________
Chrispc88 - Crossplatform Rocks!  
                             Top                 timhare          Post subject: 
Re: Fileupload, swedish charsPosted: Fri Mar 23, 2012 11:29 am                  
       
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11067
Location: Portland, OR  USA                Use DefineEncoding, not 
ConvertEncoding.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to