Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » LaunchWebBrowser() requires ToSystemCharset() to work properly
LaunchWebBrowser() requires ToSystemCharset() to work properly [message #35405] Fri, 10 February 2012 14:47 Go to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I just noticed on Windows 7 that Calling LaunchWebBrowser() requires the url String (including rare characters) to be converted to system charset with ToSystemCharset() before calling:

		LaunchWebBrowser(ToSystemCharset(Format("%s%s",directory,file)));


Is this the intention? I can live with this now that I know it, but would seem more logical to embed the conversion within the LaunchWebBrowser() function. I did not try it on Linux yet to see how it reacts.

Best regards,

Tom
Re: LaunchWebBrowser() requires ToSystemCharset() to work properly [message #35420 is a reply to message #35405] Sat, 11 February 2012 11:40 Go to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
For some reason, on Kubuntu Linux it works both with and without ToSystemCharset(). Maybe the LaunchWebBrowser() (the Windows part) in Core/App.cpp could be changed to do ToSystemCharset() internally to make the usage more streamlined.

Best regards,

Tom
Previous Topic: Json serialization support
Next Topic: Point implicit conversions
Goto Forum:
  


Current Time: Thu Mar 28 19:59:50 CET 2024

Total time taken to generate the page: 0.01449 seconds