Author Topic: unicode resource file  (Read 4375 times)

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 37
unicode resource file
« 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 ?



Offline stahta01

  • Lives here!
  • ****
  • Posts: 7607
    • My Best Post
Re: unicode resource file
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: unicode resource file
« Reply #2 on: June 10, 2014, 12:17:50 pm »
thank you , it works