[vtkusers] Does VTK support UNICODE??

Brad King brad.king at kitware.com
Wed Jul 19 12:48:09 EDT 2006


Sean McBride wrote:
> On 2006-07-19 10:11, Brad King said:
> 
>>>> I made the fix for Unicode some time ago. But it is not in CMake.
>>>> You have to do the project settings on your own. Also, a few
>>>> new classes have to be converted. Only a few lines.
>> No changes in CMake are needed.  Just turn on advanced cache values in
>> CMakeSetup and edit the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS options.  Add
>> "-D_UNICODE" to the flags.
> 
> And that simple change allows vtk to show non-ASCII characters?
> 
> For example:
> 
> void vtkCaptionActor2D::SetCaption	( const char * )
> 
> what encoding do I pass the string as?  UTF8?

No, I was just saying that no CMake changes are needed to add -D_UNICODE.

-Brad



More information about the vtkusers mailing list