To install custom response pages in languages such as, Japanese or Chinese on the Palo Alto Networks firewall, save the HTML page in UTF-8 encoding.
In this example, a "URL Filtering and Category Match Block Page" translated to Japanese is being deployed:
From the Palo Alto Networks firewall go to Device > Response Pages
Select "URL Filtering and Category Match Block Page", check the Predefined box on the left and click on Export, a url-block-page.txt file will be downloaded by the browser:
(Windows) Open the downloaded url-block-page.txt file with Notepad
(Linux or Mac) Open the downloaded url-block-page.txt file with vi As shown in the example below, the file encoding us-ascii (ansi), edit the file with vi:
Translate the text wanted to the target language, this can be done with a tool like Google Translate. For this example, Japanese is being used, select the Japanese text and paste it on Notepad or vi
(Windows) As shown below, Japanese text pasted in Notepad:
Save the file in Notepad using the "Save As" option. From the Encoding drop down list, select "UTF-8" for the file encoding.
(Linux or Mac). For vi, enter the following commands before pasting: :set bomb :set fileencoding=utf-8 As shown below, paste the text in Japanese:
Save and quit with command: :wq
Verify that the file is now encoded with UTF-8, as shown in the following example:
Go back to the firewall WebUI, select "URL Filtering and Category Match Block Page", click "Import", browse for the modified url-block-page.txt file, and click OK
Commit, the response page with foreign language characters will now be installed
Note: The custom response pages is a global setting (per vsys). If saving the format as "Unicode", there will be an error when importing the HTML file to the firewall