Hello
I'm creating a website where users will upload all sort of images, so I decided to make my system work something like
domain.com/randomtext/original-image-name.jpg
Now I'll try to rename file to randomtext_original-image-name.jpg and I have mod_rewrite and everything works. But my language has also some non english symbols, like č, š, ž and lately I noticed that they are not replaced anymore with c, s, z (wikipedia). I would like to do the same thing, but it looks like that it doesn't work if I include this symbols into name. So I decided to use utf8_decode and utf8_encode to convert symbols and store them...
Now I used:
header("Content-Type: $ctype; charset=utf-8");
where $ctype is image/jpg or image/gif, but I can't get utf-8 to be recognized, I can still see my default charset iso... I tried as normal html page:
header('Content-Type: text/html; charset=utf-8');
and everything works. So what do u suggest, should I use another method to save images to server or there is solution to my problem...