Search found 242 matches
- Fri Jul 12, 2019 9:11 am
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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...
- Thu Jul 11, 2019 12:10 pm
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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 en...
- Thu Jul 11, 2019 8:26 am
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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 cod...
- Wed Jul 10, 2019 1:00 pm
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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 U...
- Wed Jul 10, 2019 7:18 am
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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 ...
- Tue Jul 09, 2019 12:32 pm
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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 th...
- Tue Jul 09, 2019 10:06 am
- Forum: C++ Development
- Topic: Unicode Madness
- Replies: 24
- Views: 3896
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...
- Wed Apr 03, 2019 12:31 pm
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
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...
- Wed Apr 03, 2019 9:17 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
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...
- Wed Apr 03, 2019 8:24 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
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 sti...
- Wed Apr 03, 2019 6:43 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
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...
- Tue Apr 02, 2019 1:25 pm
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
Re: wxWebView with Chromium backend
One last thing: You wrote, that RunScript() with the Chromium backend does not return values. Is that according to your knowledge still the case? I did not "wrote it", it is a documented limitation of the back end and to my best knowledge it is still the case. I tried looking into it but ...
- Tue Apr 02, 2019 11:43 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
Re: wxWebView with Chromium backend
First, try a fresh start with a source tree and build outside the source directory. Thanks for describing further. I am almost certain, that I already fail on downloading the right repository. When I get the repo (from github) from TcT2k directly, the solution is not complete and cmake complains ab...
- Tue Apr 02, 2019 7:22 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
Re: wxWebView with Chromium backend
Did you use the newest cef-version in your test? ( 3.3282.1735.g1e5b631 ) No, I did use the one CMake automatically downloads and installs. However, I do not think it has any effect on your linker error with wxWidgets' declared string.... I used CMake (CMake-GUI) because it is the simplest way to b...
- Thu Mar 28, 2019 8:00 am
- Forum: C++ Development
- Topic: wxWebView with Chromium backend
- Replies: 25
- Views: 6555
Re: wxWebView with Chromium backend
Thanks for your input :-) Just a thought: Did you set wxUSE_WEBVIEW_CHROMIUM to 1 (the default seems to be 0)? I tripped over that, but yes, I finally did set the flag. ;-) FWIW, I just tested it and could build and run the sample successfully. I used CMake (checked wxUSE_WEBVIEW_CHROMIUM and set wx...