Skip to content

Commit

Permalink
Add Unicode example.
Browse files Browse the repository at this point in the history
  • Loading branch information
gruns committed Jun 29, 2016
1 parent 03caee4 commit 71a5857
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@ Or use furl's inline modification methods.
'http://www.google.com/?two=2'
```

Encoding is handled for you.
Encoding is handled for you. Unicode, too.

```python
>>> f = furl('http://www.google.com/')
>>> f.path = 'some encoding here'
>>> f.args['and some encoding'] = 'here, too'
>>> f.url
'http://www.google.com/some%20encoding%20here?and+some+encoding=here,+too'
>>> f.set(host=u'ドメイン.テスト', path=u'джк', query=u'☃=☺')
>>> f.url
'http://xn--eckwd4c7c.xn--zckzah/%D0%B4%D0%B6%D0%BA?%E2%98%83=%E2%98%BA'
```

Fragments have a path and a query, too.
Expand Down

0 comments on commit 71a5857

Please sign in to comment.