Skip to main content

Problem:

How to create files that use UTF-8 or Unicode (UTF-16) character encodings?

The strings are initially ANSI based so need to be converted to UTF-8 and UTF-16.

Resolution:

Attached is an example that shows how you can do this.

Converting to Unicode uses standard COBOL syntax for dealing with Unicode strings.

UTF-8 is slightly more complex. The Windows API that performs the conversion to UTF-8 is "WideCharToMultiByte". This however requires a Unicode input string to perform the conversion on. A 2 stage conversion approach is required to first convert to Unicode and then to UTF-8 using "WideCharToMultiByte".

Attachments:

utf8.zip

Old KB# 1309

Problem:

How to create files that use UTF-8 or Unicode (UTF-16) character encodings?

The strings are initially ANSI based so need to be converted to UTF-8 and UTF-16.

Resolution:

Attached is an example that shows how you can do this.

Converting to Unicode uses standard COBOL syntax for dealing with Unicode strings.

UTF-8 is slightly more complex. The Windows API that performs the conversion to UTF-8 is "WideCharToMultiByte". This however requires a Unicode input string to perform the conversion on. A 2 stage conversion approach is required to first convert to Unicode and then to UTF-8 using "WideCharToMultiByte".

Attachments:

utf8.zip

Old KB# 1309

ANSI to Unicode PST is now possible with PST upgrade Application. It's a suitable solution to convert the ANSI Outlook PST file to Unicode Outlook PST file format. PST Upgrade utility allows you to easily read large or maximum size Outlook PST files and process them to explore the ANSI or UNICODE PST files. You can select the ANSI PST file and quickly upgrade to the UNICODE PST file without any data loss that could be easily opened in all versions of Outlook. This software support MS Outlook and Windows OS versions.

Visit here:- https://www.softakensoftware.com/ansi-to-unicode-converter.html


Problem:

How to create files that use UTF-8 or Unicode (UTF-16) character encodings?

The strings are initially ANSI based so need to be converted to UTF-8 and UTF-16.

Resolution:

Attached is an example that shows how you can do this.

Converting to Unicode uses standard COBOL syntax for dealing with Unicode strings.

UTF-8 is slightly more complex. The Windows API that performs the conversion to UTF-8 is "WideCharToMultiByte". This however requires a Unicode input string to perform the conversion on. A 2 stage conversion approach is required to first convert to Unicode and then to UTF-8 using "WideCharToMultiByte".

Attachments:

utf8.zip

Old KB# 1309

ANSI to Unicode PST is now possible with PST Upgrade Program. It's a suitable solution to convert the ANSI PST data files to Unicode PST file format. PST Upgrade Program allows you to easily read large or maximum size Outlook PST files and process them to explore the ANSI or UNICODE PST files. You can select the ANSI PST file and quickly upgrade to the UNICODE PST file without any data loss that could be easily opened in all versions of Outlook. This application supports all MS Outlook and Windows OS versions.

Visit here:- https://www.sysessential.com/pst-upgrade/