Unplanned
Last Updated: 29 Feb 2024 08:11 by ADMIN
ADMIN
Todor
Created on: 25 Feb 2015 11:43
Category: RichTextBox
Type: Feature Request
7
RichTextBox: Support import from RTF of multi-byte Unicode characters represented with multiple ANSI characters in the form \'xx

Multi-byte Unicode characters can be represented as multiple ANSI characters in the form \'xx, for example:
\'89\'ce can represent the character 火 if multi-byte encoding should be used. Using multi-byte encoding could be set explicitly using the \ucN tag, or implicitly using the \fcharset for the current font (e.g. \fcharset134 is double-byte).

When such text is imported (commonly CJK text [Chinese, Korean, Japanese] the characters are imported incorrectly (as two '?' or as two different characters for each character)

Such RTF documents are produced from Office 2010 (Word, Outlook), WordPad - on saving or on copying content from the applications.

Such behavior is observed when copying text from WPS Writer (version 11.2.0.10132) Part of WPS Office.
4 comments
ADMIN
Dimitar
Posted on: 29 Feb 2024 08:11

Hello Li,

Thank you for sharing your approach with the community and the team. I am sure that someone will benefit from it. I have updated your Telerik points for this. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Caesar
Posted on: 29 Feb 2024 07:05

Try rewrite the methord Telerik.Windows.Documents.FormatProviders.Rtf.Parser.DecodeCurrentHexBuffer.

private void DecodeCurrentHexBuffer(RtfReader reader)
{
    hexDecodingBuffer.Seek(0, SeekOrigin.Begin);
    var buffer = hexDecodingBuffer.ToArray();
    var str = Encoding.GetEncoding(reader.CodePageDecoder.CurrentCodePage).GetString(buffer);
    curText.Append(str);
    hexDecodingBuffer.SetLength(0);
}

ADMIN
Boby
Posted on: 15 Jul 2019 13:29
Hi Ryan,

The request is currently not scheduled for a specific release - continue following this item to get notified about potential status updates.

Regards,
Boby
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ryan
Posted on: 08 Jul 2019 17:17
Any idea on when the fix for this issue might make it into a release?