GB2312 encoding available on the UWP

Source: Internet
Author: User

Probably in the WP8 time, there is a WP8 available on the Internet GB2312 encoding solution, that is the dbcscodepage.

But because UAP started, Microsoft deleted the GetManifestResourceStream, so this thing can not be used

I used a simple URI instead of the GetManifestResourceStream, and finally found that this dbscodepage can work properly, so it is posted here for everyone to use

------------------------------------------

Http://files.cnblogs.com/files/loyieking/GB2312.zip

How to use

1. Add two files of the compressed package to the project

2. On Gb2312.bin, right-click on the property, and then change the build action to "content"

3. Await dbcsencoding.getdbcsencoding ()

If two files are not placed in the root directory of the project, you need to locate the "Ms-appx:///gb2312.bin" in DBCSEncoding.cs to change the URI to the correct location.

Oh, yes, it's more than UWP,UAP.

GB2312 encoding available on the UWP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.