Comments (4)
You are on Windows and you are using litehtml_to_wchar/utf8_to_wchar in your container, right? Those functions incorrectly work with Unicode characters above 0xFFFF on Windows.
from litehtml.
Just checked this issue on Windows. Actually litehtml converts from/to UTF-32. On Linux sizeof(wchar_t) == 4
, on Windows sizeof(wchar_t) == 2
. That's why there are issues with unicode characters above 0xFFFF on Windows.
Replaced wchar_t with char32_t and renamed utf8_to_wchar
to utf8_to_utf32
and whar_to_utf8
to utf32_to_utf8
from litehtml.
Nice. Finally all vestiges of wchar_t are eradicated.
from litehtml.
@stasoid @tordex thanks for the fix, but there're also 5-6 bytes long utf-8 sequences, so anyway you'd have to deal with UTF32-LE instead of UTF16-LE in the previous case
from litehtml.
Related Issues (20)
- -Wreorder compiler warnings HOT 1
- Unhandled enum in switch warnings HOT 3
- Negative top margin changes block height
- Security policy HOT 1
- Windows build is broken. HOT 2
- Something weird with flex layout HOT 2
- import_css blocks the main thread HOT 1
- The token 'and' in a @media selector isn't parsed correctly.
- Litehtml in Claws-mail takes ages parsing a specific HTML e-mail HOT 5
- Windows build warnings HOT 3
- Word wrapping support
- clarification of offset in gradient.color_points HOT 2
- litehtml::render_item_block - unused variable warning HOT 2
- litehtml::flex_line::distribute_free_space - sum_flex_factors never used: HOT 2
- document_container::draw_solid_fill() and background_layer's is_root HOT 7
- Suggestion: Add a clang-format file for code formatting HOT 1
- Other modernization cleanups? HOT 3
- Table border="0" sending me border widths of 1 HOT 1
- namespace vs. no namespace & proper std includes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litehtml.