File: 01-encoding-bug.patch

package info (click to toggle)
webxml 1.12-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 388 kB
  • ctags: 123
  • sloc: cpp: 1,054; xml: 62; makefile: 22
file content (20 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- webxml/webxml.ui.h	2003-03-06 10:50:23.000000000 -0300
+++ webxml-1.12/webxml.ui.h	2005-09-14 11:51:01.000000000 -0300
@@ -491,7 +491,7 @@
     QTextStream t( &f );
     //QTextCodec *codec = QTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
     //t.setCodec(codec);
-    t << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" << "\n";
+    t << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << "\n";
     t << "<!DOCTYPE web-app" << "\n";
     t << "PUBLIC \"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN\"" << "\n";
     t << "\"http://java.sun.com/dtd/web-app_2_3.dtd\">" << "\n";
@@ -878,7 +879,7 @@
     frmPreview *pr=new frmPreview();
     QString str;
      QTextStream t( &str, IO_WriteOnly );
-    t << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" << "\n";
+    t << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << "\n";
     t << "<!DOCTYPE web-app" << "\n";
     t << "PUBLIC \"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN\"" << "\n";
     t << "\"http://java.sun.com/dtd/web-app_2_3.dtd\">" << "\n";