# String Encoding in Attribute table is change when stop editing

**URL:** <https://mapwindow.discourse.group/t/string-encoding-in-attribute-table-is-change-when-stop-editing/1118>\
**Category:** MapWinGIS\
**Created:** [October 20, 2021, 6:16pm UTC](https://mapwindow.discourse.group/t/string-encoding-in-attribute-table-is-change-when-stop-editing/1118 "2021-10-20T18:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [October 27, 2021, 7:18am UTC](https://mapwindow.discourse.group/t/string-encoding-in-attribute-table-is-change-when-stop-editing/1118/10 "2021-10-27T07:18:39Z")

</div>

Hello @Lytrieu002

I found and fixed the problem and got it working. I’m perplexed as to how this has been broken for so long without being more evident - perhaps because we’ve been fixing Unicode issues as related to OGR datasources, but not looking at the issues as related to Unicode Shapefiles (perhaps they are less common).

So as it is, I’ve still got some things to work through. In this case, the code was assuming the ANSI code page, and I’ve now accounted for Shapefiles specified as UTF-8, but I’m still uncertain about how we are handling other code pages.

Then I need to document the changes and create a Jira issue to log the bug and the fix.

At the moment, I don’t have a work-around to suggest for you. If @pmeems is willing, perhaps we can get an update soon that incorporates the most recent fixes.

Regards,  
Jerry.

---

_[View the full topic](https://mapwindow.discourse.group/t/string-encoding-in-attribute-table-is-change-when-stop-editing/1118)._
