Skip to content

Broken page with emoji in source #405

Description

@zizzfizzix
  • BookStack Version: 0.16.2
  • PHP Version: 7.1
  • MySQL Version: mysql Ver 15.1 Distrib 10.0.30-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Used snippet
class ErrorHandler {
    static func handleError(code: Int) -> String {
        "Handle error with code: \(code) 😡".log()
        switch code {
        case 400:
            return "Invalid data!".localized
        case 401:
            FlowManager.logout()
            return "You are not authorized!".localized
        case 403:
            return "Access denied!".localized
        case 404:
            return "Not found!".localized
        default:
            return "Something went wrong! Please try again.".localized
        }
    }
}
Expected Behavior

Emoji in the page content

Actual Behavior

see:
screencapture-wiki-codeaddict-io-books-dev-playbook-page-error-handler-1496246314891

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions