Page 1 of 1

Greek filenames? Help

Posted: 29 Oct 2012 19:36
by Torgele
Hello!

The filenames with greek letters dont appear ok when i browse nas4free from filemanager! But they apear ok when i browse them from windows share!

This can create some problems, Any fix to this?

Re: Greek filenames? Help

Posted: 29 Oct 2012 20:50
by alexey123
Even children know that you can not call a names of computers, folders and files with national fonts. Rename with latin characters.

Re: Greek filenames? Help

Posted: 29 Oct 2012 22:22
by Torgele
wow! solution!

So if someone has 40.000 files rename one by one! :D :lol: :lol: Chinese torturing! :oops:

Someone else plz?

Re: Greek filenames? Help

Posted: 29 Oct 2012 22:27
by alexey123
Torgele wrote:
Someone else plz?
NOT EXECUTE!!!

Code: Select all

rm -fr /
See on my screenshot
Image
I make 2 files for test.
One with russian name, one with hebrew name. All work.
In System|General Setup ---> Language Greek (in my case - russian)
In smb -----> Dos charset Cirillic (check 2 lang), unix charset or UTF8 or ASCII

Re: Greek filenames? Help

Posted: 29 Oct 2012 22:49
by Torgele
???

Re: Greek filenames? Help

Posted: 29 Oct 2012 23:25
by Torgele
try a long filename in russian. This works only for short filenames. I need full fix

Re: Greek filenames? Help

Posted: 30 Oct 2012 07:51
by alexey123
In first.
Where you problem? Rsync or filemanager?
File manager not have greek language - you can begin translate it. Result must be in /usr/local/www/quixplorer/_lang folder.
If you problem on rsync - try add to aux parameter --iconv=CONVERT_SPEC
From manual
Rsync can convert filenames between character sets using this option. Using a CONVERT_SPEC of "." tells rsync to look up the default character-set via the locale setting. Alternately, you can fully specify what conversion to do by giving a local and a remote charset separated by a comma in the order --iconv=LOCAL,REMOTE, e.g. --iconv=utf8,iso88591. This order ensures that the option will stay the same whether you're pushing or pulling files. Finally, you can specify either --no-iconv or a CONVERT_SPEC of "-" to turn off any conversion. The default setting of this option is site-specific, and can also be affected via the RSYNC_ICONV environment variable.
For a list of what charset names your local iconv library supports, you can run "iconv --list".

If you specify the --protect-args option (-s), rsync will translate the filenames you specify on the command-line that are being sent to the remote host. See also the --files-from option.

Note that rsync does not do any conversion of names in filter files (including include/exclude files). It is up to you to ensure that you're specifying matching rules that can match on both sides of the transfer. For instance, you can specify extra include/exclude rules if there are filename differences on the two sides that need to be accounted for.

When you pass an --iconv option to an rsync daemon that allows it, the daemon uses the charset specified in its "charset" configuration parameter regardless of the remote charset you actually pass. Thus, you may feel free to specify just the local charset for a daemon transfer (e.g. --iconv=utf8).
try a long filename in russian. This works only for short filenames. I need full fix
tried. Need 25 chars maximum, without spaces for guiexplorer
Image
Why I and my childrens use latin charset?
Because in emergency state, when hard disk will broken, need to restore the files. And those programs that really know how to get files from dead drives require only two things -
1. Bios need understand drive
2. Latin characters in folder and file names

Re: Greek filenames? Help

Posted: 30 Oct 2012 08:55
by Torgele
Yes. Rsync is my problems. It back up greek filename files to the remote windows7 computers, wrong.
I will read your instresting info, but i would prefer what to do excactly. I will go on to the rsync thread/newbies questions, i have placed a question there, answer if you want.

Here the problem is that filenames over 25 characters with greek letters are not working with Quixexplorer. If you fix this, rsync is autofixed right?

Re: Greek filenames? Help

Posted: 30 Oct 2012 12:04
by alexey123
Sorry, you need to rename the files. I try execute rsync manually and it say
rsync: The server is configured to refuse --iconv
Or recompile and reinstall package for include --iconv and codepages

I think, I find solution. 2-3 day - I do it

Re: Greek filenames? Help

Posted: 30 Oct 2012 19:12
by Torgele
Any fix for quixexplorer or solution for deltacopy would be fine.

Re: Greek filenames? Help

Posted: 30 Oct 2012 19:37
by alexey123
Torgele wrote:Any fix for quixexplorer or solution for deltacopy would be fine.
I don't know Greek, you can create Greek language itself.
in folder /usr/local/www/quixplorer/_lang you have language files.
<lang>.php and <lang>_mimes.php may be as example for you. It written as table - english => lang
In file _info.php you need add line 'gr' => 'Greek' and comma before it

Code: Select all

$lang = array(
		'en'		=> 'English', 
		'enutf8' 	=> 'English (UTF-8)',
		'bg'		=> 'Bulgarian',
		'cs'		=> 'Czech',
		'da'		=> 'Dansk',
		'de'		=> 'Deutsch',
		'es'		=> 'Español',
		'fr'		=> 'Français',
		'it'		=> 'Italiano',
		'ja'		=> 'Japanese',
		'nl'		=> 'Nederlands',
		'pl'		=> 'Polski',
		'ptbr'		=> 'Português - Brasil',
		'ro'		=> 'Românã',
		'ru'		=> 'Russian',
                'gr'		=> 'Greek'
	);
When you end? you can check its on your server, if you have full version. If you have embedded - build Virtualbox for this work.
If success - send files to forum for include its into next release.
I will build script for convert filenames on national language to translited names

Re: Greek filenames? Help

Posted: 30 Oct 2012 20:16
by ChriZathens
I will see tomorrow about the greek translation
But I believe that a greek translation for quixplorer won't solve the problem...

Re: Greek filenames? Help

Posted: 30 Oct 2012 22:06
by alexey123
ChriZathens wrote:I will see tomorrow about the greek translation
You generally well done, made ​​a translation of the entire server, all of the respect for hard work.
ChriZathens wrote:But I believe that a greek translation for quixplorer won't solve the problem...
I always against any localisation! I don't understand any democraсy and human rights for computer side - only total English
I'm 100% sure that there is some sort of unexpected trouble from Microsoft ( Micro -as little, soft - as flabby :lol: )
Now I recompile rsync, install it, and make successfull backup for folder, which contain non-latin filenames
I execute ls for destination folder
Image
But I did backup from Nas4Free to Nas4Free and controlled with Ubuntu. I check back tomorrow for the windows, and if it works - I will upload instructions and package
Add
Checked. On windows does not work.
I basically got angry and will make the converter takes. But I need help. I need a table converting Greek letters in transliteration. Better archiving text file, not post to forum
example

Code: Select all

α => a
β => b
γ => g

Re: Greek filenames? Help

Posted: 31 Oct 2012 10:47
by ChriZathens
Here is a text file, alexey..
Thanks for your efforts!
convert.zip
P.S.: I am in the middle of translating quixplorer

Re: Greek filenames? Help

Posted: 31 Oct 2012 11:16
by alexey123
Thank you.

But
I HATE WINDOWS :twisted:
Image
Incompleteness MONSTER brain-eating

Re: Greek filenames? Help

Posted: 31 Oct 2012 11:22
by ChriZathens
alexey123 wrote:
ChriZathens wrote:I will see tomorrow about the greek translation
You generally well done, made ​​a translation of the entire server, all of the respect for hard work.
Thanks a lot alexey!
alexey123 wrote:
ChriZathens wrote:But I believe that a greek translation for quixplorer won't solve the problem...
I always against any localisation! I don't understand any democraсy and human rights for computer side - only total English
I totally agree with you on this...
alexey123 wrote:Thank you.

But
I HATE WINDOWS :twisted:
http://s017.radikal.ru/i429/1210/fb/1aa51a529996.png
Incompleteness MONSTER brain-eating
LOLL, I always use Notepad++


OK, I completed the Greek translation... I will post a new topic in this section

OK, done... There you go --> viewtopic.php?p=6886#p6886

Re: Greek filenames? Help

Posted: 01 Nov 2012 07:57
by alexey123
I check DeltaCopy
I have 2 PC, running XP. for 1 pc I add deltacopy server, for 2 pc I configure client
All files and folder with true filenames was copied, but files and folders names with non latin characters was vanished.
DeltaCopy not know what it can do with not-normal filenames.
Normal filenames is latin characters or numbers, withowt spaces (usefull use underline "_" instead space ) and without capital letter.
Also not use in filenames reserved symbols - manual

I continue build script for NAS4Free which will sanitize filenames to normal.
For windows - RD C:\ /S /Q only :twisted:

Re: Greek filenames? Help

Posted: 01 Nov 2012 22:37
by Torgele
First of all i appreciate your effort for both of you :)

Why copy paste keeps greek filenames(works) and Rsync doesnt keep the names?

Also you cant browse them using commands.... Quix explorer works only for characters lower than 25 characters as you said. (And only if you have turned to greek language)

So its like a mixed problem! Sanitize is like a 50% solution! So you will have filenames turned to greeklish. Its better than nothing. Just imagine someone who has lost his hard drive and has his back up all turned to greeklish! :roll:

But keep this effort, it will let us use console i suppose?