English

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

Description

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

Cause

.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.

    Related Information