{"action":"opened","issue":{"url":"https://api.github.com/repos/VincentToups/matlab-utils/issues/1","labels_url":"https://api.github.com/repos/VincentToups/matlab-utils/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/VincentToups/matlab-utils/issues/1/comments","events_url":"https://api.github.com/repos/VincentToups/matlab-utils/issues/1/events","html_url":"https://github.com/VincentToups/matlab-utils/issues/1","id":117730451,"number":1,"title":"Writing non-ASCII charcters in LINUX (UBUNTU 14.04LTS)","user":{"login":"DrTK","id":10886625,"avatar_url":"https://avatars.githubusercontent.com/u/10886625?v=3","gravatar_id":"","url":"https://api.github.com/users/DrTK","html_url":"https://github.com/DrTK","followers_url":"https://api.github.com/users/DrTK/followers","following_url":"https://api.github.com/users/DrTK/following{/other_user}","gists_url":"https://api.github.com/users/DrTK/gists{/gist_id}","starred_url":"https://api.github.com/users/DrTK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrTK/subscriptions","organizations_url":"https://api.github.com/users/DrTK/orgs","repos_url":"https://api.github.com/users/DrTK/repos","events_url":"https://api.github.com/users/DrTK/events{/privacy}","received_events_url":"https://api.github.com/users/DrTK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T02:59:09Z","updated_at":"2015-11-19T02:59:09Z","closed_at":null,"body":"Hi, thanks for the good work with mksqlite. It really works great and fast. I love it!\r\nUnfortunately, I encountered following problem when on Linux:\r\n\r\nWhenever I try to write a `char(i)` with `i>127` to database, I get an error: `\"can't copy string in getstring()\"`. This concerns \"Umlaute\" (ä,ö,ü) or degree sign °, or other things I unfortunately need to write to database.\r\n\r\nThe following code works perfectly under Windows, but fails on Linux:\r\n\r\n    function sqlite_test\r\n        testDB = 'test.sqlite';    \r\n     \r\n        % Create the test table\r\n        eval_sqlite('CREATE TABLE Test(id INTEGER PRIMARY KEY, msg TEXT)')\r\n        % Insert something simple\r\n        eval_sqlite('INSERT INTO Test (msg) VALUES (\"Hello World\")');\r\n        % Here we get a problem on linux\r\n        txt = 'Ähm';\r\n        eval_sqlite(['INSERT INTO Test (msg) VALUES (\"', txt, '\")']);\r\n        \r\n        function out = eval_sqlite(command)\r\n            mksqlite( 'open', testDB );\r\n            out = mksqlite( command );\r\n            mksqlite( 'close' );\r\n        end\r\n        \r\n    end\r\n\r\nI don't know much about mex files and c programming, however, it seems as if the error occurs somwhere around `line 253` in `mksqlite.cpp`\r\n\r\nI would be really happy if you'd have an idea how this problem could be solved.\r\nThanks, Tobias"}}