Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f1bf50a

Browse files
encode the text in utf-8
1 parent ed1d5ea commit f1bf50a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎restaurant_names.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
count = 0
2121
for info in names:
22-
title = info.text
23-
print(str(title))
22+
title = info.text.encode("utf-8")
23+
print(title)
2424
count += 1
25-
file.write(str(title) + '\n')
25+
file.write(title + '\n')
2626
print(f"{count} RESTAURANTS FOUND...")
27+
print(start)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /