Trying to use the arduino mega as webserver line code help

:slight_smile:

Hello guys I have a problem which this line

client.println("");

I have to use multiple symbols " so when i compile shows me the error

Such other lines like

client.println("");

or with

class="xxxxxxxxx"

Any ideas to get the solution.

Thanks

aurquiel:
Any ideas to get the solution.

In HTML you can use single quotes instead of double quotes, so one solution would be:

client.println("<meta charset='utf-8'/>");

The other solution would be escaping the double quotes within the string:

client.println("<meta charset=\"utf-8\"/>");

jurs:
In HTML you can use single quotes instead of double quotes, so one solution would be:

client.println("<meta charset='utf-8'/>");

The other solution would be escaping the double quotes within the string:

client.println("<meta charset=\"utf-8\"/>");

Thanks that give me a flashback to c and printf