mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Unicode support for tags + sqlite
This commit is contained in:
@@ -13,7 +13,11 @@
|
||||
tag_value = ""
|
||||
if tag.value is not None:
|
||||
tag_value = tag.user_value
|
||||
tag_names_and_values[unicode(tag_name, 'utf-8')] = unicode(tag_value, 'utf-8')
|
||||
## Tag names and values may be string or unicode object.
|
||||
if isinstance( tag_name, str ):
|
||||
tag_names_and_values[unicode(tag_name, 'utf-8')] = unicode(tag_value, 'utf-8')
|
||||
else: ## isInstance( tag_name, unicode ):
|
||||
tag_names_and_values[tag_name] = tag_value
|
||||
%>
|
||||
//
|
||||
// Returns the number of keys (elements) in an array/dictionary.
|
||||
|
||||
Reference in New Issue
Block a user