PDA

View Full Version : What does the u'*****' mean?


Murphyspublic
11-17-2011, 02:03 AM
Hi there everyone!

I hope this isn't too silly of a question, but I'm working with Python, and shaders, and I'm wondering what the following means:

After creating or querying a shader, and printing the result, I get something similar to the following:

>>> shdr, sg = createSurfaceShader( 'blinn' )
>>> shdr
nt.Blinn(u'blinn1')

Why is the result:
u'blinn1'

instead of just:
blinn1

What does it mean?
Thanks in advance,
M :bounce:

EJ
11-19-2011, 07:06 PM
It stands for Unicode. Basically ASCII can hold 256 values while Unicode can hold lots more, I think over 65,000 values.

No need to worry about it.

CGTalk Moderation
11-19-2011, 07:06 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.