473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

formatted string like---> u'720 S'

I'm building a dictionary from values a database and upon print the
dictionary I see key value pairs like this:

u'Briarcliff' : [u'2500 E'],
u'Shumway' : [ u'2600 E']

do I need to slice off the "u", or anything? I know it has something to
do with unicode but I don't know how to treat it.
Feb 23 '06 #1
1 1202
On Thu, 23 Feb 2006 08:00:16 -0700, Bell, Kevin wrote:
I'm building a dictionary from values a database and upon print the
dictionary I see key value pairs like this:

u'Briarcliff' : [u'2500 E'],
u'Shumway' : [ u'2600 E']

do I need to slice off the "u", or anything? I know it has something to
do with unicode but I don't know how to treat it.


No. The u is part of the display of the string, just like the quote marks.

Ordinary strings are printed with ' ' delimiters.
Unicode strings are printed with u' ' delimiters.

--
Steven.

Feb 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Neil Ginsberg | last post by:
Is there a function for determining the length of a string of text in inches or twips? I need to move a text box over based on the length of a string of text in another text box. Thanks!
6
by: Jack Addington | last post by:
I am capturing a set of validation messages from my validation method. I was putting each message back into a StringCollection. I then wanted to output a big warning message in a Dialog box. Is...
2
by: Ray Stevens | last post by:
I would like to quickly strip out all non-numeric characters from a string (including whitespace) into a new string (i.e., remove the edit mask). Would RegEx be the best way to do this and, if so,...
2
by: KB | last post by:
Hi guys, In my DataGrid I have a column that displays decimal values as currency ( I set the Data Formatting expression of that column to {0:C}). So the actual string displayed in the grid looks...
3
by: rockdale | last post by:
Hi, All I have a datagrid with TemplateColumn as following. Notice the "{0:c}" format the price as $8.90 for 8.90 and ($7.8) for -7.8 <ItemTemplate> <asp:Label id=lblPrice runat="server"...
6
by: janama | last post by:
Hi, can such a thing be done somehow? aaa = self.aaa bbb = %s.%s % ('parent', 'bbb') Can you use strings or %s strings like in the above or
3
by: Pavel | last post by:
I tried to do very simple operation, at least I thought it will be simple, and it is to use String.Format. But, when formatted string bigger than 255 I got this mistake "Input string was not in a...
3
by: paulmac106 | last post by:
Hello, I thought this would be easy, and I've read a lot of posts, but I can't seem to find exactly what I'm trying to do. into another table to a Char(8) field....but I want the value to be...
0
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
vs2005 c# hi: need to convert a simple int to a format nnnn. if I have int 1 I want the result to be padded with 0s as 0001 on a string I have int 1 and I want "0001" any help. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.