Jump to content
Tommi Prami

Microsoft Windows Beta UTF-8 support for Ansi API could break things

Recommended Posts

Wiki Article of the Change

https://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows#cite_note-10

 

One of out customer had selected that and we started to experience very weird problems and took some time to find out why it misbehaves.

None of the application could connect to Firebird SQL server (Ours or third party) successfully.

So would be smart to go through all tooling and code with that setting, we never know what M$oft will do with that, will it ever be released or will it soon be default for all.

 

One coder switched this on and started to get weird results, he could not specify what all symptoms, but said that lot of work to be done before that setting can be enabled.

Could be smart to Check how your environment, tools and code will behave.

MicrosoftRegionalSettingsBetaFeature.png

  • Like 2

Share this post


Link to post

Is it affect programs, written in Unicode enabled Delphi versions (Delphi 2009 and above)?

Share this post


Link to post

This is a very promising change in Windows.  However right now it breaks many things including Excel addins.

Share this post


Link to post
19 hours ago, pyscripter said:

This is a very promising change in Windows.  However right now it breaks many things including Excel addins.

Sure is, but in other hand, why not use "Unicode API" at first place.

 

I would guess  they use Ansi API just as proxy to and from Unicode UTF16 API.  

SomeWindowsApiA -> String Conversion to UTF16 -> SomeWindowsApiAW 

Have not checked, just my hunch...

In other hand If they have UTF-8 enabled API that is not just proxy to Wide API, then it could provide speed improvement if App uses UTF-8 strings.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×