A test docx file sent to richview@gmail.com.
Text in word,with show special paragraph symbols:
RVE demo paste result:
paste text from office word, space cause mess code
Re: paste text from office word, space cause mess code
Any suggestions?
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: paste text from office word, space cause mess code
I confirm the problem (unexpected 牋 character).
I need some time to understand why it happens.
I need some time to understand why it happens.
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: paste text from office word, space cause mess code
RTF import code did not take into account that in Chinese encoding, the non-breaking space character does not have $A0 code.
Quick fix:
Open RVRTF.pas file, find the line containing the substring:
Change this line to:
Quick fix:
Open RVRTF.pas file, find the line containing the substring:
Code: Select all
Keyword:'~'
Code: Select all
(Keyword:'~'; DefValue:$00A0; UseDef:False; kwd:rtf_kwd_WideChar; idx:$A0; AffectTo:rtf_af_None),
Re: paste text from office word, space cause mess code
That works perfect! Thank u for ur sweet support:)
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: paste text from office word, space cause mess code
The fixes are included in TRichView 20.1 (uploaded today)