Why is the result of rendering wml (as well as xhtml) pages different from local files and from network server files with the Nokia Mobile Browser 4.0 when using the Nokia WAP Gateway Simulator 4.0? How to configure the system so that I can use also the URL addresses?
When I access the file locally (Mobile Browser Menu -> File -> Open File...) it is rendered ok in the Browser. However, if I copy the same file to a URL in a network server (Apache AdvancedExtranetServer 1.3.27) and access it (Mobile Browser Menu -> File -> Load URL...) the browser displays the source code of the page instead. The source code is the same as the original except that some indent spaces are removed.
The Mobile Browser Diagnostics / Traffic shows that with URL access the Content Data is 785 bytes long and interpreted to be of type 'application/vnd.wap.wmlc; ISO-8859-1' where as with local file access the Content Data is 698 bytes long and the type 'text/vnd.wap.wml;UTF-8'. With Ethereal line sniffer I can see that actually the Apache server set the content length to 785 and the Content-Type HTTP header to 'text/plain, charset=ISO8859-1\r\n'.
My guess is, that you have some non-ascii content in the file and that's causing the problem. Try to configure your gateway to send the content specifying the character set to be UTF-8. One way to do it is to modify the first line of the file to look like this: "<?xml version="1.0" encoding="utf-8"?>". If that doesn't work add this header to the list of custom headers in the device settings dialog:
accept-charset: utf-8
If this doesn't work, just copy the actual content to this forum, so we can check it out.