turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 155 forks source link

Replaced Write() and Flush() the pipeline with state machines for tra… #424

Open javierrledesma opened 1 year ago

javierrledesma commented 1 year ago

…nslation.

Fixes that, when using ASP.NET with AJAX, Javascript uses chartAt to count the characters in each chunk. In such a case, certain combinations in certain languages use 2 octets per char and AJAX does not work (web console shows a response parsing bug, as the length of each chunk does not match that of the content (translation result). With this code, the resulting stream can have a larger number of characters than the original.

This code was made in 2019 on i18n version 2.1.10. Updated to the current version 2.1.17.