Code Monkey home page Code Monkey logo

hzexe.qqmusic's People

Contributors

hzexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hzexe.qqmusic's Issues

已存在的字符串封装传送问题

在托管和非托管之间的字符串封装传送过程中,.net只支持unicode(16 bit)和ANSI,再加上c/c++中宽字符在跨平台时的种种问题,总之,有点复杂
当前的库是使用unicode封装传送字符串,然而在c/c++中wchar_t在不同平台长度不同,虽然在gcc可以通过-fshort-wchar把wchar_t视为16位,然而,它会污染其它的代码或库;
当前尝试使用

#ifdef WIN32
#define t_wchar_t wchar_t
#else
#define t_wchar_t short
#endif`

来解决,但带来的问题是非windows下输出t_wchar_t时需要做转换

放弃ANSI编码的原因是这玩意在不同语种之间不兼容,特别是一些歌手和歌名是各种语言拼写的,遇到这类与计算机语言不同的歌名或歌手必定乱码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.