Skip to content

Commit

Permalink
Default to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
esteele committed Sep 20, 2015
1 parent 7bf7da9 commit 5d75ed4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plone/app/vocabularies/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,7 @@ def __init__(self, context, base_query={}, default_query=None):
self.catalog = getToolByName(context, "portal_catalog")
self.portal_tool = getToolByName(context, "portal_url")
self.portal_path = self.portal_tool.getPortalPath()

registry = queryUtility(IRegistry)
if registry is not None:
self.encoding = registry.get('plone.default_charset', 'utf-8')
else:
self.encoding = 'utf-8'
self.encoding = 'utf-8'

def __contains__(self, value):
"""Return whether the value is available in this source
Expand Down

0 comments on commit 5d75ed4

Please sign in to comment.