Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F fiche
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Théophile Bastian
  • fiche
  • Issues
  • #1
Closed
Open
Issue created Mar 26, 2017 by Valentin Melot@melot

Caractères non ASCII non supportés

Hello,

Il semblerait que les caractères non ASCII ne soient pas supportés dans le CLI. Un dump de la sortie :

sas ~ $ fiche théo

Traceback (most recent call last):

File "/usr/local/util/bin/fiche", line 242, in

main()

File "/usr/local/util/bin/fiche", line 238, in main

parsed.func(parsed)

File "/usr/local/util/bin/fiche", line 176, in fetchFiche

jsonVal = fetchLoginJson(parsed.login)

File "/usr/local/util/bin/fiche", line 170, in fetchLoginJson

jsonVal = json.loads(getPage(url))

File "/usr/local/util/bin/fiche", line 95, in getPage

handle = urllib.request.urlopen(req)

File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen

return opener.open(url, data, timeout)

File "/usr/lib/python3.5/urllib/request.py", line 466, in open

response = self._open(req, data)

File "/usr/lib/python3.5/urllib/request.py", line 484, in _open

'_open', req)

File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain

result = func(*args)

File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open

context=self._context, check_hostname=self._check_hostname)

File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open

h.request(req.get_method(), req.selector, req.data, headers)

File "/usr/lib/python3.5/http/client.py", line 1106, in request

self._send_request(method, url, body, headers)

File "/usr/lib/python3.5/http/client.py", line 1141, in _send_request

self.putrequest(method, url, **skips)

File "/usr/lib/python3.5/http/client.py", line 983, in putrequest

self._output(request.encode('ascii'))

UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 28: ordinal not in range(128)

Merci !

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking