Search found 186 matches

by Natulux
Wed Aug 07, 2019 12:13 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

Oh, you know chilkat? You never stop to surprise me. I bought and use their Email component. Saved me so much time. Worth every cent. I have the feeling that chilkat is able to solve everything, if you find yourself able to puzzle the right examples and classes to your usecase. I had some serious h...
by Natulux
Wed Aug 07, 2019 9:08 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

I just meant: ISO-8859-1 is my local encoding and can be displayed on my machine. To display any UTF-8, I would normally use wxString::FromUTF8() and I would get my local encoding, right? Not exactly. wxString stores Unicode characters internally and they can be displayed inside wxWidgets directly....
by Natulux
Wed Aug 07, 2019 6:37 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

There is no such thing as "escaped" or "unescaped" UTF8. "ğ" is Unicode 0x011F 0x011F converted into UTF8 encoding is 0xC4 0x9F. There is no ambiguity anywhere. I have those terms from PHP. I guess that flag is just badly named and means: utf8 or unicode code points. However, if I send "ğ" as UTF8 ...
by Natulux
Tue Aug 06, 2019 1:31 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

Ahh, sry guys. When it comes to the second page, I often miss that there were new answers. I didn't want to ignore you. Please let me warm up this post again. My last message said, that I can send utf8 as is, which was only right for unicode letters from u+0000 to u+00FF. I tested the turkish letter...
by Natulux
Fri Jul 12, 2019 9:11 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

What happens if you send using wxHttp and libcurl? IIRC, wxHTTP is not able to send https, so unfortunately this is no option for me. So the only thing missing is the URL encoding? wxString urlHexEncode( const char *in ) { wxString out; out.Alloc( wxStrlen(in) * 2 ); char c; while( (c = *in++) != 0...
by Natulux
Thu Jul 11, 2019 12:10 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

What exactly are you doing with the utf8 encoded data and how to you process it on the receiving side? I use the chilkat CkHttp class to send a https POST to PHP REST server. The body of my POST holds data, which is a json string. Example { "username":"Jürgen" } The text data encoding is supposed t...
by Natulux
Thu Jul 11, 2019 8:26 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

Something different (src: https://www.utf8-zeichentabelle.de/unicode-utf8-table.pl ): From my wxString("Jürgen", wxConvUTF8) == "Jürgen" example: From the UTF8 table: ' ü ' has the unicode codeposition: U+C3BC ' à ' has the unicode codeposition: U+00C3 ' ¼ ' has the unicode codeposition: U+00BC So...
by Natulux
Wed Jul 10, 2019 1:00 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

UTF8 encoding a string does not modify the string itself, it's always written into another buffer. So basically if I were to give my data to a wxString constructor everytime, this wouldn't happen? wxString string1("SomeUTFString", wxConvUTF8); wxString string2(String1.ToUTF8()); //Still UTF8 String...
by Natulux
Wed Jul 10, 2019 7:18 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

Hi, So when you send this string "Jürgen", what does your PHP server receives? Can you print the results (to console/log)? Thank you. I can ask the developer to test that with me and log that. From previous tests I guess that the server actually and literally gets "Jürgen" if I send "Jürgen". I ...
by Natulux
Tue Jul 09, 2019 12:32 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Re: Unicode Madness

"Jürgen" becomes "Jürgen" which to my knowledge means, that I used UTF8 encoding on that string twice. No. "ü" is the UTF-8 encoded version of "ü". Yes, it is. But if I encode this UTF8 string again with ToUTF8, I get ""Jürgen". And the third time its "Jürgen". So the "junk" is increasi...
by Natulux
Tue Jul 09, 2019 10:06 am
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 451

Unicode Madness

Hey guys, at the moment I am stuck with character encodings. I need to be sure to write an UTF-8 encoded wxString to my https handler and in return I get an UTF-8 body. There are many different sources, servers, sockets and a file in play, so I sometimes do not know exactly, what I have. I read in t...
by Natulux
Wed Apr 03, 2019 12:31 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 1058

Re: wxWebView with Chromium backend

BTW: Have you tried the prebuild binaries for CEF? Actually, wxWidgets's CMake project downloads the binary from the very same site. It is like magic and one of the reasons I tested that PR with CMake only. From what I read, building CEF3 is quite demanding process and it would not be wise to integ...
by Natulux
Wed Apr 03, 2019 9:17 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 1058

Re: wxWebView with Chromium backend

The problem is maintenance. Once included in wxWidgets, it will require core dev to make sure that it always works. But there are many wxWidgets library (wxSQLite3 for example) that have maintainer(s) but aren't part of wx and we use them extensively. So if anyone picks the project, am sure communi...
by Natulux
Wed Apr 03, 2019 8:24 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 1058

Re: wxWebView with Chromium backend

But I am hesitant to try this, because I think it is missing some files again. Eg., I cant find the "wxmsw31u_webviewchromium.lib" in that repo... What do you mean? No repository should contain built libraries. Silly me! You are right. [EDIT]: But why I was so focused on this thing: I still can't c...
by Natulux
Wed Apr 03, 2019 6:43 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 1058

Re: wxWebView with Chromium backend

Hi, Because PB just cloned TcT2K repository and switched the branch appropriately. ;-) BTW, I believe the actual WebView code is able to do RunScript() with return value. It just a Chromium that doesn't support it (yet?). I thought I did that aswell, but whenever I fork TcT2k's wxWidgets, github ju...