[vtkusers] vtkUnicodeString::from_utf8(): not a valid UTF-8 string.

David Gobbi david.gobbi at gmail.com
Tue Aug 18 17:02:32 EDT 2015


Hi Jose,

Are you using Visual Studio?  Its default encoding is not utf-8.  Your
source files probably use latin1 to encode the accents, because that is the
default 8-bit encoding for Windows in western countries.

 - David


On Tue, Aug 18, 2015 at 11:15 AM, Jose Barreto <jose.de.paula at live.com>
wrote:

> erro Generic Warning: In D:\Documentos
> XDICOM\VTK\source\Common\Core\vtkUnicodeString.cxx, line 183
> vtkUnicodeString::from_utf8(): not a valid UTF-8 string.
>
>
> When passao a text that has emphasis (UTF8 format) to
>
> caption = vtkCaptionWidget::New();
>
> //texto = "Testandóoo";
> static_cast<vtkCaptionRepresentation *>(caption
>
> ->GetRepresentation())->GetCaptionActor2D()->SetCaption(clXUteis::ConverterStringParaChar(form->texto));
>
>
> can anyone help?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150818/5fc691a3/attachment.html>


More information about the vtkusers mailing list