Join GitHub today
Cannot create post with latin characters in title #4714
Command to reproduce the bug:
If I remove the characters "í", "á", "ç" and "ã" (Portuguese), the post is saved.
Thanks for the report @diegomagikal . Using UTF-8 in PHP arguments doesn't work on Windows for PHP <= 7.0, however it will work for PHP >= 7.1, as it was fixed as part of Support for long and UTF-8 path. A workaround for PHP <= 7.0 is to use the
echo "Perícias Contábeis" | wp post create --post_type=page --post_status=publish --prompt=post_title
This issue should probably be added to https://make.wordpress.org/cli/handbook/common-issues/