Kash
Kash

Reputation: 17

How to display special character in RichEdit control

I am using following code.

  nsDialogs::CreateControl "RichEdit20A" ${WS_VISIBLE}|${WS_CHILD}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} ${__NSD_Text_EXSTYLE} 30% 30% 65% 45% ``
  Pop $0

 ;load the license from file 

nsRichEdit::Load $0 $PLUGINSDIR\license.txt

(Using NSIS RichEdit Plugin)

I have problem loading special characters. They should up as ® or – instead of copyright symbol or - I am using unicode version of NSIS and compiling on 32 bit machine. Can someone please provide suggestions for this.

Upvotes: 0

Views: 668

Answers (1)

Slappy
Slappy

Reputation: 5472

I think there were an update in Unicode NSIS which fixes this issue. Try to use latest version 3.0a2.

Set Unicode true and use

nsDialogs::CreateControl "RichEdit20W" ...

The W mean Unicode version of RichEdit (A is for Ansi).

Upvotes: 0

Related Questions