Welcome Guest, Not a member yet? Register   Sign In
How to deal w/ directories and files with French character?
#1

[eluser]minimal design[/eluser]
Hi guys,

I thought I'd ask one of the pros here because this is not my specialty and I don't even know where to start searching:

I wrote a script with Code Igniter which works flawlessly tested locally on my MAMP install on OS X. It's very simple, it scans folders for images, the folders become categories and it displays images as a photo gallery. Here my problem: some of the folders and files have French characters in theme, like: "La boîte à Pâtes.jpg" for instance... On my system, those characters remains the same, but once I FTP the script + images to the live server, they become stuff like: "La bo�te � P�tes.jpg"

The files themselves look fine when I look at them via FTP, so the problem is somehow related to the way the server serves the HTML Everything is setup as UTF-8 in PHP and HTML (so it works locally) which leads me to believe the problem is the way the server is setup... But I'm hosting with Joyent and there servers are supposed to be setup in UTF-8 so I'm not sure where to look from there...

I should point out that within the script I use url_title() to create clean URLs, so I don't have a problem with characters not allowed in URL, as I said, the script works totally fine on my local server...

EDIT: I got a little further in my investigations... on my local dev server, the URL in the browser location bar looks like:
Code:
http:/devserver.com/téstôuille/
but on the live (joyent) server the URL in the browser location bar looks like (extra space added so forum doesn't convert):
Code:
http:/liveserver.com/t % E 9 s t % F 4 uille/

How can I stop this convertion on live server from happening?

Thanks!


Messages In This Thread
How to deal w/ directories and files with French character? - by El Forum - 11-23-2008, 09:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB