![]() |
|
Russian folders and files on windows - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Russian folders and files on windows (/thread-11770.html) |
Russian folders and files on windows - denser - 2014-04-29 Hello, i try to make from Zenphoto web gallery. I have large archive of photos with structure maked while ages..Aim is - leave structure as is(ie russian names for folders and files); manager adds new files and folders via smb(as she habits). Zen photo give exactky what i need except one thing. Albums scans properly, names are saVED but links to images and cache(cache also saves proper names in russian) in utf-8 acronims %D%E etc. I create function for converting such thing(in similar project to resolve GET method for russian) function unicon($str, $to_uni = true) {
} So it works in other place but i need help to place it in zenphoto to fix URI to images using this function to convert "%D0%90"=>"А" (example) If need additional explain please ask. Russian folders and files on windows - acrylian - 2014-04-29 Zenphoto has a plugin name However, it is also possible to clean up afterwards using the Did you try these? It is known that a lot of servers don't work with such special chars on the file system (even my German ones generally don't like the German umlauts). Russian folders and files on windows - denser - 2014-04-29 Dear acrylian, i read forum, use search - bat nothig helps me. Not any plugins(they all off from start) nothing. So i find solution by myself... I had to dig in your code May be my method isnt clean - but it works. Now i see thumbs properly. Only thing that wont work for now - its fullsize image but i working on it. functions-basic.php 1104: -function pathurlencode($path) {
... 1138: +
` Russian folders and files on windows - sbillard - 2014-04-29 Sounds like your server requires UTF-8 URIs. I know that Windows 7 does need this. Maybe you should select the option Always a good idea to read and understand the warnings you have from the setup run. Of course modifying the Zenphoto code is a mistake. Your changes will simply get overwritten next time you upgrade. Russian folders and files on windows - denser - 2014-04-30 Dear sbillard - i read warnings carefully and reinstall Zenphoto several times(i thought i miss something). And yes option UTF8 image URIs always enabled even at start of setup. I noticed - devs advices to turn on options or turn of - but options already in that state. And charset_tést - i READ this in warning. Script resoled my file-system as ISO-8859-1 and all symbols was bugged. As you probably know ISO-8859-1 didn't support Russian letters... So i gave to use manual set up this option to WINDOWS-1251(only this option give me write result while scan folders) In big deal - you should try first before you give such useless advice. I check it for you but you don't believe me. This script is exactly what i want but you sufficient russian users or devs - IDK. I try many ways, play with config, reinstall hundreds times and get same result: path to files shows correctly but THUMBS not. With manipulation above it become works. Please, give attention to this and may be you can give more "nice" solution? Russian folders and files on windows - denser - 2014-04-30 Dear sbillard, i apologize for some critic, but bug was with don't saving option UTF8 image URIs - was checked but don't applied some why. I recheck option in DB and set UTF8_image_URI to 1... Why it happens idk. Hope i will find reason |