Skip to content

The advice regarding mb_internal_encoding #867

Open
@iio7

Description

@iio7

The advice given is that:

You should use the mb_internal_encoding() function at the top of every PHP script you write (or at the top of your global include script), and the mb_http_output() function right after it if your script is outputting to a browser. Explicitly defining the encoding of your strings in every script will save you a lot of headaches down the road.

However, I feel that this is wrong. People need to setup php correctly to support UTF-8, not changing config at runtime.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions