We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d04d7b commit 70ba355Copy full SHA for 70ba355
1 file changed
bin/us_counties.py
@@ -6,6 +6,7 @@
6
p_data = Path('data')
7
8
reader = csv.reader(p_data.joinpath('us_counties.txt').open())
9
+next(reader) # skip header row
10
11
state_name_idx = 0
12
state_fips_idx = 1
@@ -23,4 +24,5 @@
23
24
}
25
)
26
-p_data.joinpath('us_counties.json').write_text(json.dumps(counties))
27
+# need ensure_ascii=False to handle special characters (for PR counties)
28
+p_data.joinpath('us_counties.json').write_text(json.dumps(counties, ensure_ascii=False))
0 commit comments