MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Non wide-char based encodings
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
The use of LPWSTR throughout the API for posted messages, URIs, resource locations, and more is fairly anachronistic and requires a lot of unnecessary unicode and ascii character conversions (and allocations) for codebases that either do not require unicode support, or more likely, use utf-8 everywhere. Base win32 APIs also support utf-8 code pages, and integrating WebView2 at the moment is a little awkward due to the string handling convention.
Describe the solution you'd like and alternatives you've considered
As a comparison point, CEF defines the string type based on a preprocessor definition to change between utf8 and utf16. As a pure runtime dependency, it would be great to have extended interfaces with overloads for LPWSTR receiving methods that accept LPSTR instead, ideally without internal encoding overhead.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.