AppEngine Standar Enviroment PHP - La codificación de caracteres del documento HTML no ha sido declarada

383 views
Skip to first unread message

WH NM

unread,
Feb 2, 2018, 9:01:31 AM2/2/18
to Google App Engine
I am begginer in AppEngine with PHP. I am following this tutorial https://cloud.google.com/appengine/docs/standard/php/quickstart.

This is my code:

app.yaml:
runtime: php55
api_version
: 1


handlers
:
- url: /.*
  script
: index.php


index.php:
<!DOCTYPE html>
<html>
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
<meta name="viewport" content="width=device-width, initial-scale=1">
 
<title>SOFTCLOUD - Hello Word PHP APPENGINE</title>
</head>
<body>
<?php
 echo
'Hola Mundo PHP en APPENGINE - STANDAR ENVIROMENT';
?>
</body>
</html>

When I want to deploy in the local server the application doesn't show anything in chrome and Mozilla browser show a message in console.

Mozilla Message:

"La codificación de caracteres del documento HTML no ha sido declarada. El documento se mostrará con texto "basura" en algunas configuraciones de navegador si el documento contiene caracteres externos al rango US-ASCII. La codificación de caracteres de la página debe ser declarada en el documento o en el protocolo de transferencia."

Please, help me.

Jordan (Cloud Platform Support)

unread,
Feb 2, 2018, 4:44:12 PM2/2/18
to Google App Engine
This is an HTML issue with your code, and that error message is returned by your Browser. This is not an issue with Google. It is recommended to ensure you are correctly setting your charset as explain in w3schools:

<meta charset="UTF-8">

- Note that Google Groups is for general product discussions and is not for technical support. It is recommended to continue all further troubleshooting in your Stack Overflow post. 
Reply all
Reply to author
Forward
0 new messages