Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Z zacl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Zach Beane
  • zacl
  • Issues
  • #3

Closed
Open
Created Nov 28, 2016 by Dave Cooper@dcooperContributor

:external-format :utf-8 not respected

When starting aserve with (gwl:start-gwl), with current feature/zacl branch of gendl, it will specify :external-format :utf-8 for CCL (the external-format name needs to be made portable, but that's another issue).

You can also manually start aserve with :external-format :utf-8 just to be sure and to make a small self-contained example:

(net.aserve:start :port 9005 :external-format :utf-8)

Now try the following publish command (and note the :external-format in the with-http-body should not be necessary, if the server was started with the correct :external-format):

(in-package :gwl)

(publish :path "/utf8-try"
         :function #'(lambda(req ent)
                       (with-http-response (req ent :content-type "text/html; charset=utf-8")
                         (with-http-body (req ent :external-format :utf-8)
                           (format *html-stream* "Hey €¥© Now")
                           ;;(format *html-stream* "Hey Now")
                           ))))

Current behavior:

When visiting http://localhost:9005/utf8-try you will see error

[ASERVE] 60-aserve-worker: 11/28/16 - 19:25:19 - while processing command "GET /utf8-try HTTP/1.1"
got the error #\U+20AC (code 8364) is not a LATIN-1 character.

Expected behavior:

The web page should display the EUR, JPY, and Copyright symbols normally.

Assignee
Assign to
Time tracking