[CMake] Convert UTF8 to UTF16 (Windows)

Wolf wolf at wolfsden.cz
Mon Aug 29 04:01:29 EDT 2016


On , tonka tonka wrote:
> I have a little problem with files which has to be UTF 16 instead of UTF 8,
> f.e. Visual studios .rc files. They must be utf16 and git detect it as bin
> files.
> So my question is: how do you handle these files?
> My rc files has to be generated with configure_file, so my hope was that
> configure_file will read utf8 and write utf16 if I want, but that seems not
> possible.
> Is there and other way in cake to convert to utf16?

I would just use iconv for this. Call it as external program to do the
conversion.

W.
-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160829/20dd552f/attachment.sig>


More information about the CMake mailing list