Results 1 to 4 of 4

Thread: SQLite encoding problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: SQLite encoding problem

    Hi, may it could help if you execute following
    Qt Code:
    1. PRAGMA encoding = "UTF-8";
    To copy to clipboard, switch view to plain text mode 
    and did
    Qt Code:
    1. SELECT name || surname FROM names WHERE nameid=?
    To copy to clipboard, switch view to plain text mode 
    also return a corrupt umlaut?

    EDIT: what encoding has your cpp file?
    Last edited by Lykurg; 27th September 2009 at 10:25.

  2. #2
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    29
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: SQLite encoding problem

    Hi,

    the first solution didn't work.

    I think all the cpps are encoded using latin1.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: SQLite encoding problem

    and if you skip the blank in you "concat"? Is the umlaut then also corrupted? Seems to be a problem between your latin1-string and the internal utf8 of sqlite.

Similar Threads

  1. Problem regarding SQLITE commands
    By sudheer168 in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2008, 09:09
  2. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 13:05
  3. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 15:38
  4. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 13:48
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.