Author Topic: file upload name batch  (Read 1524 times)

Offline noname8

  • Posts: 141
file upload name batch
« on: April 08, 2009, 07:54:37 PM »
just lately installed baker because WP really sucked with every-day security holes & updates

this is nice an simple

however, when upload image with scandic, ä ö Åå
it came up with ____  but when inserting it to page, the src came up with ä and ö.
(maybe becos my server is old and not fully utf-8) so what i did was functions.php media_filename:

Code: [Select]

$low=array("ä" => "a", "ö" => "o", "Ä" => "a", "Ö" => "o", "Å" => "a", "É" => "a", "Á" => "a", "Ü" => "u", "Ñ" => "n");
    $string=strtolower(strtr($string,$low));

What do you thin, could this be done in more simple way?

 

postern-length