File: enc_char_wrong_directive.xml

package info (click to toggle)
perl 5.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 128,392 kB
  • sloc: perl: 534,963; ansic: 240,563; sh: 72,042; pascal: 6,934; xml: 2,428; yacc: 1,360; makefile: 1,197; cpp: 208; lisp: 1
file content (46 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<Document start_line="2">
  <head1 start_line="2">
    NAME
  </head1>
  <Para start_line="4">
    Implicit Encoding with Warning in UTF8 and wrong encoding directive
    iso-8859-1
  </Para>
  <head2 start_line="6">
    DESCRIPTION
  </head2>
  <Para start_line="8">
    This line should warn that the price &#8364;9.99 contains a non-ASCII
    character.
  </Para>
  <encoding start_line="10">
    iso-8859-1
  </encoding>
  <Para start_line="12">
    And ch&#226;teau should not generate a warning.
  </Para>
  <head1 errata="1" start_line="-321">
    POD ERRORS
  </head1>
  <Para errata="1" start_line="-321">
    Hey! 
    <B>
      The above document had some coding errors, which are explained below:
    </B>
  </Para>
  <over-text errata="1" indent="4" start_line="-321">
    <item-text start_line="-321">
      Around line 8:
    </item-text>
    <Para start_line="-321">
      Non-ASCII character seen before =encoding in &#39;&#8364;9.99&#39;.
      Assuming UTF-8
    </Para>
    <item-text start_line="-321">
      Around line 10:
    </item-text>
    <Para start_line="-321">
      Couldn&#39;t do =encoding iso-8859-1: Encoding is already set to UTF-8
    </Para>
  </over-text>
</Document>