{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/24464","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/24464/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/24464/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/24464/events","html_url":"https://github.com/owncloud/core/issues/24464","id":153403476,"number":24464,"title":"GBK text files display garbage.","user":{"login":"chansey97","id":4015056,"avatar_url":"https://avatars.githubusercontent.com/u/4015056?v=3","gravatar_id":"","url":"https://api.github.com/users/chansey97","html_url":"https://github.com/chansey97","followers_url":"https://api.github.com/users/chansey97/followers","following_url":"https://api.github.com/users/chansey97/following{/other_user}","gists_url":"https://api.github.com/users/chansey97/gists{/gist_id}","starred_url":"https://api.github.com/users/chansey97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chansey97/subscriptions","organizations_url":"https://api.github.com/users/chansey97/orgs","repos_url":"https://api.github.com/users/chansey97/repos","events_url":"https://api.github.com/users/chansey97/events{/privacy}","received_events_url":"https://api.github.com/users/chansey97/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-06T08:30:24Z","updated_at":"2016-05-10T16:00:25Z","closed_at":"2016-05-10T11:48:37Z","body":"<!--\r\nThanks for reporting issues back to ownCloud! This is the issue tracker of ownCloud, if you have any support question please check out https://owncloud.org/support\r\n\r\nThis is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/CONTRIBUTING.md#guidelines\r\n\r\nFor reporting potential security issues please see https://owncloud.org/security/\r\n\r\nTo make it possible for us to help you please fill out below information carefully.\r\n--> \r\n### Steps to reproduce\r\n1.create \"gbk_testfile.txt\" in windows7 (chinese version).\r\n2.write \"测试GBK中文乱码\" and save.\r\n2.upload this file to owncloud.\r\n3.gbk_testfile.txt will display garbage (content is garbage).\r\n\r\n### Expected behaviour\r\nDisplay correct content (chinese encoding).\r\n\r\n### Actual behaviour\r\nDisplay garbage content.\r\nNote: If I convert \"gbk_testfile.txt\" from GBK to UTF-8,  there is no problem (display correct content).\r\n\r\n### Server configuration\r\n**Operating system**:\r\nubuntu 14.04\r\n\r\n**Web server:**\r\napache2\r\n\r\n**Database:**\r\nmysql 5.5.49\r\n\r\n**PHP version:**\r\n5.5.9\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\nownCloud 9.0.1 (stable)\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nfresh install\r\n\r\n**Where did you install ownCloud from:**\r\nhttps://owncloud.org/install/\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n```\r\nLogin as admin user into your ownCloud and access \r\nhttp://example.com/index.php/settings/integrity/failed \r\npaste the results here.\r\n```\r\nNo errors have been found.\r\n\r\n**List of activated apps:**\r\n\r\n```\r\nActivity 2.2.1\r\nCollaborative tags 0.2\r\nComments 0.2\r\nDeleted files 0.8.0\r\nFederation 0.0.4\r\nFirst Run Wizard\r\nGallery 14.5.0\r\nMail Template Editor 0.1\r\nNotifications 0.2.3\r\nPDF Viewer 0.8\r\nProvisioning API 0.4.1\r\nShare Files 0.9.1\r\nText Editor 2.1\r\nUpdate notification 0.1.0\r\nVersions 1.2.0\r\nVideo player 0.9.8\r\n\r\nIf you have access to your command line run e.g.:\r\nsudo -u www-data php occ app:list\r\nfrom within your ownCloud installation folder\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'passwordsalt' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'secret' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => \"***REMOVED SENSITIVE VALUE***\",\r\n  ),\r\n  'datadirectory' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'overwrite.cli.url' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'dbtype' => 'mysql',\r\n  'version' => '9.0.1.3',\r\n  'dbname' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'dbhost' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'dbtableprefix' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'dbuser' => '\"***REMOVED SENSITIVE VALUE***\",\r\n  'dbpassword' => \"***REMOVED SENSITIVE VALUE***\",\r\n  'logtimezone' => 'UTC',\r\n  'installed' => true,\r\n);\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nno\r\n\r\n**Are you using encryption:** yes/no\r\nno\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\nno\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n```\r\nWith access to your command line run e.g.:\r\nsudo -u www-data php occ ldap:show-config\r\nfrom within your ownCloud installation folder\r\n\r\nWithout access to your command line download the data/owncloud.db to your local\r\ncomputer or access your SQL server remotely and run the select query:\r\nSELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';\r\n\r\n\r\nEventually replace sensitive data as the name/IP-address of your LDAP server or groups.\r\n```\r\n\r\n### Client configuration\r\n**Browser:**\r\nFirefox\r\n\r\n**Operating system:**\r\nWindows7 (note: ios owncloud client  can reproduce too)\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\nInsert your webserver log here\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\nInsert your ownCloud log here\r\n```\r\n\r\n#### Browser log\r\n```\r\nInsert your browser log here, this could for example include:\r\n\r\na) The javascript console log\r\nb) The network log \r\nc) ...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/218205115","html_url":"https://github.com/owncloud/core/issues/24464#issuecomment-218205115","issue_url":"https://api.github.com/repos/owncloud/core/issues/24464","id":218205115,"user":{"login":"chansey97","id":4015056,"avatar_url":"https://avatars.githubusercontent.com/u/4015056?v=3","gravatar_id":"","url":"https://api.github.com/users/chansey97","html_url":"https://github.com/chansey97","followers_url":"https://api.github.com/users/chansey97/followers","following_url":"https://api.github.com/users/chansey97/following{/other_user}","gists_url":"https://api.github.com/users/chansey97/gists{/gist_id}","starred_url":"https://api.github.com/users/chansey97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chansey97/subscriptions","organizations_url":"https://api.github.com/users/chansey97/orgs","repos_url":"https://api.github.com/users/chansey97/repos","events_url":"https://api.github.com/users/chansey97/events{/privacy}","received_events_url":"https://api.github.com/users/chansey97/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T16:00:25Z","updated_at":"2016-05-10T16:00:25Z","body":"@PVince81 But on iOS device, GBK still display garbage..... (This patch only works on web version)"}}