[vtkusers] Displaying the degree symbol "\u00B0" in vtkCornerAnnotation
alok.theanomaly at gmail.com
Tue Oct 21 12:46:15 EDT 2014
I accidently hit post too quick earlier:
Here's the completed and corrected post:
This is a silly question.
I have been trying for a while to display a degree symbol in
The way I am trying to do it is like this:
std;:string angle = computeAngle()+"\u00B0";
cornerAnnotation->SetText(3,angle.c_str()); //where cornerAnnotation if of
This displays something like 50Â° rather than 50°
When I display the string on a terminal it works as expected.
Am I missing something here?
On Tue, Oct 21, 2014 at 11:32 AM, junior <alok.theanomaly at gmail.com> wrote:
> This is a silly question.
> I have been trying for a while to display a degree symbol in
> The way I am trying to do it is like this:
> std;:string angle = computeAngle()+"\u00B0";
> cornerAnnotation->SetText(3,angle.c_str()); //where cornerAnnotation if of
> type vtkCornerAnnotation.
> This displays something like 50A&circ°
> View this message in context:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
I live a simple life... in 0s and 1s !
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers