jDownloadsownloads.com


Author Topic: File name in win-1251  (Read 4035 times)

0 Members and 1 Guest are viewing this topic.

Offline Kr

  • Newbie
  • *
  • Posts: 4
File name in win-1251
« on: 12.05.2015 13:12:46 »
Hello, I ran into a problem. First I add the files. The file names on disk in win-1251 encoding, such as 'New folder'. Then in the database I receive UTF-8 'file name _îâàÿ_ïàïêà'. On the drive I get the file renamed to 'iiaay_iaiea'. Please help to configure win-1251.

The jdownloads configuration: Create the directory name for a category automatically? Yes. All the rest are Not.


PHP Built On Windows NT IT-BEVN 6.1 build 7601 (Unknow Windows version Business Edition Service Pack 1) i586
Database Version 5.5.13-log
Database Collation utf8_general_ci
PHP Version 5.3.6
Web Server Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8 k PHP/5.3.6
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.16

Offline ColinM

  • Moderator
  • *
  • Posts: 3.700
Re: File name in win-1251
« Reply #1 on: 12.05.2015 16:48:02 »
Hi
Not certain about handling of say Cyrillic characters for example in Win-1251 encoding when it comes to the server file system.
In Config - Files and Folders tab there is a setting "Use UTF-8"  and another one, "Remove/Change special characters in name?" that turns Transliteraion on or off.

Note also the remark
Quote
Important information: The 'auto monitoring' function always uses the results from the function: 'Remove/Change special characters in name'. This is regardless of whether the function is activated or not. So you should only use the following characters a-zA-Z0-9 ._- in the names of files and folders which are to be added automatically.

The reason for the enforced use in auto monitoring is to avoid potential failures part way through.

Colin

Offline Kr

  • Newbie
  • *
  • Posts: 4
Re: File name in win-1251
« Reply #2 on: 14.05.2015 11:48:48 »
I'd like to name the files remained in Cyrillic and in win-1251. I can do this in jdownloads standard methods? Or do I need something to alter?

Thank you for answers!

Offline ColinM

  • Moderator
  • *
  • Posts: 3.700
Re: File name in win-1251
« Reply #3 on: 14.05.2015 21:18:33 »
Hi
I have tried to simulate, and it seems OK.  Please see attached pics for more info and examples.

Please let me know if it works ok

Colin

[gelöscht durch Administrator]

Offline Kr

  • Newbie
  • *
  • Posts: 4
Re: File name in win-1251
« Reply #4 on: 19.05.2015 13:29:57 »
Thanks for the reply, nothing has changed. I think the problem may be with the settings of Apache.

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate,no-cache
Pragma: no-cache
Content-Length: 0
Content-Type: text/html; charset=utf-8
Last-Modified: Fri, 20 Mar 2015 01:27:38 GMT
Server: Microsoft-IIS/7.5
X-Powered-By: PHP/5.3.27
Set-Cookie: f361a6344318e24e893b68ec4b146952=a2dsblondb6ke1jqag38a33a11; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
X-Powered-By: ASP.NET
Date: Tue, 19 May 2015 11:27:03 GMT

[gelöscht durch Administrator]

Offline ColinM

  • Moderator
  • *
  • Posts: 3.700
Re: File name in win-1251
« Reply #5 on: 20.05.2015 02:11:16 »
Hi
I see you are running on an IIS server.  Regret I have no experience there.
If you find a solution please post as it could help others
Colin

Offline Arno

  • Administrator
  • ***
  • Posts: 12.305
    • jDownloads.com
Re: File name in win-1251
« Reply #6 on: 20.05.2015 23:46:07 »
Hi Erik,
Quote
Quote from Colin:
Regret I have no experience there.
me too.  :-\

Maybe should you try the 'Use utf-8' option setting = Yes. All others = No.
Can you use kyrillic folder and file names in the core components from your Joomla installation?

Please try also to get more informations about your server settings in special 'IIS server' foren.
You should also contact the hoster.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Kr

  • Newbie
  • *
  • Posts: 4
Re: File name in win-1251
« Reply #7 on: 17.09.2015 08:15:39 »
Sorry for long silence.

I tried to change scan.php and jdownloadshelper.php by adding the function iconv. But the work is too difficult for me. I decided to just transliterate all file names.