Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: airc on June 09, 2014, 08:20:45 pm

Title: unicode resource file
Post by: airc on June 09, 2014, 08:20:45 pm
Hi
i made a simple .rc file (simple dialogbox) with ResEdit and save it with utf-8 (because i use unicode characters).
CodeBlocks pass the resource file to windres as code ascii , now i have to pass --codepage=65001 to windres in order to compile my unicode resource .

in CodeBlocks there is (use custom command to build this file) but it never works for me .

any idea ?


Title: Re: unicode resource file
Post by: stahta01 on June 09, 2014, 09:57:58 pm
The simplest solution is to add the "--codepage=65001" after the windres command in the toolchain configuration.
The other option I can think of is editing the advanced compiler settings.

Tim S.
Title: Re: unicode resource file
Post by: airc on June 10, 2014, 12:17:50 pm
thank you , it works