Author Topic: Wrong link when using foreign characters  (Read 2361 times)

Offline estecb

  • Member
  • *
  • Posts: 10
Wrong link when using foreign characters
« on: 23-08-2011, 07:21:49 »
I just upload some files named with foreign characters, just for testing...
This is the link generated by FIU:

https://rapidshare.com/files/1557378091/alú_tes_ñáéíóú.txt

the file name is: https://rapidshare.com/files/3817198141/alú_tes_ñáéíóú.txt

If I upload the file through firefox, the link given by RS is okay: https://rapidshare.com/files/3817198141/alú_tes_ñáéíóú.txt

I didn't try uploading to other hosts, but I suspect I would get similar results.

Thanks

EDIT: ok, I just found out you are decoding the string as latin-1, and RS is sending the string as utf-8... I guess there's no easy way to solve this... you could try to auto detect the encoding (there are some libraries to do that), or just try to decode it as utf-8, if fails try to decode as latin-1 (the other way around won't work, since it's what you are doing now, latin-1 wont fail but it'll show some weird characters instead), then code as utf-8.
« Last Edit: 13-09-2011, 14:42:18 by z_o_o_m »

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Wrong link when using foreign characters
« Reply #1 on: 13-09-2011, 14:42:09 »
well, I will update that ... but my program does not support unicode on some places, so it can't be fixed completely

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Human verification ... What is the name of my program? File & Image ********?: