{"action":"opened","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/380","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/380/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/380/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/380","id":153415036,"number":380,"title":"Shapefiles/Dbf that are in UTF-8 are not correctly read","user":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/CodePlex","name":"CodePlex","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T09:36:38Z","updated_at":"2016-05-06T09:36:38Z","closed_at":null,"body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/388)**\r\n\r\n**[Aphidion](http://www.codeplex.com/site/users/view/Aphidion)** wrote 2011-11-29 at 17:00\r\nusing this code:\r\n\r\n<pre><code>        var shape = FeatureSet.Open(fileName);\n        shape.FillAttributes();\n</code></pre>\r\nforeach (var row in shape.Features)\r\n\r\n<pre><code>        {\n            var name = row.DataRow[\"NAME\"].ToString();\n            names.Add(name);\n</code></pre>\r\nName is scrambled because the source encoding is in UTF-8 and there's no way to specify this in DotSpatial (that I'm aware of at least).\r\n\r\n\r\n\r\n\r\nIf someone is aware of a quick fix that would be gladly appreciated as I'm in urgent need of this functionality.\r\n\r\n**[xinzish](http://www.codeplex.com/site/users/view/xinzish)** wrote 2011-11-30 at 05:14\r\nIt seems that utf8 encoding tables can be read correctly, what I encountered is that the dbf tables in multiple bytes encoding language(such as Chinese) can not be read correctly.\r\n\r\n\r\nI recompiled the source code after made some changes in attributetable.cs , and got through.\r\n\r\n\r\nI hope the attached recompiled dll would help you."}}