html encode code example Example 1: html set character encoding <meta charset="UTF-8" /> Example 2: encode plus sign in url body=Hi+there%2bHello+there