Closed liesauer closed 3 years ago
@liesauer
Will verbatim work?
var config = DefaultConfiguration.CreateForRuntimePlatform();
config.WindowOptions.Title = @"测试";
no
here's my code
var config = DefaultConfiguration.CreateForRuntimePlatform();
config.CefDownloadOptions.AutoDownloadWhenMissing = false;
config.WindowOptions.Title = "测试";
config.WindowOptions.RelativePathToIconFile = "favicon.ico";
var appDirectory = AppDomain.CurrentDomain.BaseDirectory;
config.StartUrl = $"file:///{appDirectory}web/index.html";
var appBuilder = AppBuilder
.Create()
.UseConfig<DefaultConfiguration>(config)
.UseApp<HybridApp>()
.Build();
appBuilder.Run(args);
Did you try the "@" in front of the title? Try change "测试" to @"测试".
Did you try the "@" in front of the title? Try change "测试" to @"测试".
doesn't work.
Seems like a disconnect between .NET/C# and Cocoa/Objective-C. It will require looking at how Cocoa/Objective-C handles encoding.
@liesauer
This is now fixed.
thanks!
on osx![image](https://user-images.githubusercontent.com/8676741/106708282-8d975a00-662d-11eb-8407-c23d0ab3bd38.png)
on windows, it is fine.![image](https://user-images.githubusercontent.com/8676741/106708406-c8998d80-662d-11eb-9935-5d0894de13ec.png)