Full-Demon Posted June 26, 2007 Share Posted June 26, 2007 Hi, I want to load an image in a webpage, with <img>. The file: gallery/Italië en Polen/100_0016.JPG This doesn't work: <img src="gallery/Italië en Polen/100_0016.JPG"> Its not the spaces, but the 'ë' character that is not alright. Neither when I go to the file directly (address bar). How to prevent this? And what other characters are disallowed? Thanks! FullDemon Quote Link to comment https://forums.phpfreaks.com/topic/57264-directory-names-certain-characters-no-allowed/ Share on other sites More sharing options...
effigy Posted June 26, 2007 Share Posted June 26, 2007 Does the URL work if you replace ë with %eb? What OS are you using? What encodings are available? Quote Link to comment https://forums.phpfreaks.com/topic/57264-directory-names-certain-characters-no-allowed/#findComment-283072 Share on other sites More sharing options...
Full-Demon Posted June 26, 2007 Author Share Posted June 26, 2007 When I type the ë in the URL bar, it will automaticly translate it into %eb. I use Windows XP atm, as I havent yet installed apache/php on my ubuntu . What encodings? This sort of encodings? &blahblah; FD Quote Link to comment https://forums.phpfreaks.com/topic/57264-directory-names-certain-characters-no-allowed/#findComment-283085 Share on other sites More sharing options...
effigy Posted June 26, 2007 Share Posted June 26, 2007 ISO8859-1 (Latin 1) or (preferably) UTF-8. Quote Link to comment https://forums.phpfreaks.com/topic/57264-directory-names-certain-characters-no-allowed/#findComment-283099 Share on other sites More sharing options...
Full-Demon Posted June 27, 2007 Author Share Posted June 27, 2007 Not sure how to do that... I have this in my HTML page: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> I read that article you have in your signature, and tried UTF-8 too. But it has nothing to do with the URL encoding. I can't open anything if the URL contains weird characters. Gives me 403 error: Forbidden Thanks for replying anyway FD Quote Link to comment https://forums.phpfreaks.com/topic/57264-directory-names-certain-characters-no-allowed/#findComment-283855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.