summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index 7935cb1..496f2ad 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -758,7 +758,7 @@ class Tag(PageElement):
@string.setter
def string(self, string):
self.clear()
- self.append(string)
+ self.append(unicode(string))
def _all_strings(self, strip=False):
"""Yield all child strings, possibly stripping them."""