Special European characters in SDE data become invalid after using .Net Performance Counter


Special European characters in SDE data become invalid if a .Net application uses .NET Framework's Performance Counter, System.Diagnostics.PerformanceCounter.


.Net Performance Counter sets C run time locale to OEM code page, however ArcObjects expects data coming from SDE to be in ANSI code page and converts data to Unicode code page for internal processing.

If data coming from SDE is converted to OEM code page by the Performance Counter, the subsequent ANSI to Unicode code page conversion creates invalid data.

See the link in the Relation Information section for more information on what a code page is.

Solution or Workaround

Reset the C run time locale in the application to ANSI after calling the Performance Counter.

    Article ID:000008024

    • ArcMap 9 x
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Related Information

    Discover more on this topic