Dear list, I have now started testing SPSS v22 with fixpack 001, and have found a peculiar error. I wonder if anyone else has encountered something similar?
THE PROBLEM: the LOG in the HTML-Output does not contain scandinavian characters. For example if my syntax contains: ECHO «Først noen tabeller som viser helheten, før». The HTML file (which of course is in UNICODE)
contains <P>F�rst noen tabeller som viser helheten, f�r </P> MORE INFO: The problem seems to be limited to LOG in HTML as 1)
Scandinavian characters do print correctly using OMS output to HTML as long as they are part of the data (i.e. values in Crosstabs etc) and not the LOG.
2)
Moreover, if I output OMS to SPSS native output format or Excel the scandinavian characters print out correctly also when part of LOG. I run data and scripts using local character set, which is the ANSI Latin1.
SET UNICODE=OFF. SET LOCALE='nb_NO.windows-1252'. The relevant OMS command in syntax is: OMS /SELECT ALL /EXCEPTIF LABELS= ['Notes' 'Case Processing Summary' 'Case Summary' 'Title' 'Active Dataset' 'Statistics' 'Title']
/DESTINATION FORMAT = HTML IMAGES=YES OUTFILE = 'N:\statistikk\intern\html\tabeller_om_etnisitetssaker.htm'. This problem appeared after upgrading from SPSS v21 to v22.
Sincerely, Eero Olli |
I don't see this problem using your
specifications and 22 with FP1 (after changing the quote type in echo to
"). When I look at the raw html, I see the extended characters
escaped properly to html, e.g., o with slash appears as ø and
it displays as o with / in my browser.
Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] phone: 720-342-5621 From: Eero Olli <[hidden email]> To: [hidden email], Date: 04/25/2014 08:35 AM Subject: [SPSSX-L] Erroneous local characters in output of LOG in HTML Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear list, I have now started testing SPSS v22 with fixpack 001, and have found a peculiar error. I wonder if anyone else has encountered something similar? THE PROBLEM: the LOG in the HTML-Output does not contain scandinavian characters. For example if my syntax contains: ECHO «Først noen tabeller som viser helheten, før». The HTML file (which of course is in UNICODE) contains <P>F�rst noen tabeller som viser helheten, f�r </P> MORE INFO: The problem seems to be limited to LOG in HTML as 1) Scandinavian characters do print correctly using OMS output to HTML as long as they are part of the data (i.e. values in Crosstabs etc) and not the LOG. 2) Moreover, if I output OMS to SPSS native output format or Excel the scandinavian characters print out correctly also when part of LOG. I run data and scripts using local character set, which is the ANSI Latin1. SET UNICODE=OFF. SET LOCALE='nb_NO.windows-1252'. The relevant OMS command in syntax is: OMS /SELECT ALL /EXCEPTIF LABELS= ['Notes' 'Case Processing Summary' 'Case Summary' 'Title' 'Active Dataset' 'Statistics' 'Title'] /DESTINATION FORMAT = HTML IMAGES=YES OUTFILE = 'N:\statistikk\intern\html\tabeller_om_etnisitetssaker.htm'. This problem appeared after upgrading from SPSS v21 to v22. Sincerely, Eero Olli |
Free forum by Nabble | Edit this page |