Giter Club home page Giter Club logo

Comments (8)

jeffrosenthal avatar jeffrosenthal commented on May 27, 2024 1

from sqlite_orm.

fnc12 avatar fnc12 commented on May 27, 2024

Good job. Please make a pull request to make it more comfortable to analyze and merge

from sqlite_orm.

fnc12 avatar fnc12 commented on May 27, 2024

@jeffrosenthal I'm trying to implement what you want and facing a problem - text encoding. Using std::wstring means you are storing your text in your domain model in UTF16 and SQLite stores string in UTF8. So either we need an encoder/decoder or we must change task's meaning

from sqlite_orm.

fnc12 avatar fnc12 commented on May 27, 2024

@jeffrosenthal please check out the latest commit - I've added std::wstring full support. Now sqlite_orm encodes wide strings to UTF8 before inserting and decodes it back to UTF16 on select. Also I've added tests for several unicode alphabets (arabic, armenian, russian and turkish)
If it is ok for you please close the issue.

from sqlite_orm.

jeffrosenthal avatar jeffrosenthal commented on May 27, 2024

ty

from sqlite_orm.

fnc12 avatar fnc12 commented on May 27, 2024

@jeffrosenthal tell me please what compiler do you use and what OS. CI of this lib fails cause it can not find <codecvt> header on ubuntu but everything works fine on my mac

from sqlite_orm.

sschweigert avatar sschweigert commented on May 27, 2024

Note: <codecvt> is not supported by gcc until gcc 5. This prevents some people from using the library unless they update to the latest gcc.

I had similar compile problem with the header.

from sqlite_orm.

fnc12 avatar fnc12 commented on May 27, 2024

@sschweigert I understand. What can I do for you except advising switching from gcc to clang?

from sqlite_orm.

Related Issues (20)

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.