gofiber / fiber

⚡️ Express inspired web framework written in Go
https://gofiber.io
MIT License
33.88k stars 1.66k forks source link

🐛 [Bug]: multi-byte AppName displays confusion #2147

Closed piyongcai closed 2 years ago

piyongcai commented 2 years ago

Bug Description

if you set multi-byte text for AppName, AppName displays confusion.

┌───────────────────────────────────────────────────┐
│                   零壹矩阵管理平台 V0.3                   │   <---- HERE
│                   Fiber v2.38.1                   │
│              http://127.0.0.1:10801               │
│      (bound on host 0.0.0.0 and port 10801)       │
│                                                   │
│ Handlers ........... 176  Processes ........... 1 │
│ Prefork ....... Disabled  PID ............. 14316 │
└───────────────────────────────────────────────────┘

How to Reproduce

Steps to reproduce the behavior:

  1. Go to '....'
  2. Click on '....'
  3. Do '....'
  4. See '....'

Expected Behavior

Friendly display of multi-byte text

Fiber Version

V0 - V2.38.1

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v2"
import "log"

func main() {
    app := fiber.New(fiber.Config{
        Prefork:       false,
        CaseSensitive: true,
        StrictRouting: true,
        GETOnly:       false,
        ServerHeader:  "01-Matrix",
        AppName:      "零壹矩阵管理平台 V0.3",
    })

  log.Fatal(app.Listen(":3000"))
}

Checklist:

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord