出现error: stray ‘\357’ in program的根源

 

      

      这次又遇到这个这种问题,想找到它的根源。找到一个表格:

 

The characters at a glance

 

Here are all the printable characters, in collating order:

        ! " # $ % & ' ( ) * + , - . / 
      0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
      A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
      [ \ ] ^ _ `
      a b c d e f g h i j k l m n o p q r s t u v w x y z 
      { | } ~

        � � � � � � � � � � � � � � � 
      � � � � � � � � � � � � � � � �

      � � � � � � � � � � � � � � � � � � � � � � �
      �
      � � � � � � �
      �
      � � � � � � � � � � � � � � � � � � � � � � �
      �
      � � � � � � �
      
       

The first six rows are the ASCII character set.

Note the ordinary ASCII space (before `!') and the ISO Latin-1 non-breaking space (before `')

Character codes and names


The columns show, in order:

  • HTML: the HTML notation (decimal);
  • OCTL: the C/Modula-3 octal notation;
  • HEX: the hexadecimal code, as used e.g. in MIME quoted-printable encoding;
  • CMP: the Sun/X11 "Compose" key combinations;
  • CHR: the charater itself, when HTML-printable;
  • MEANING: the ISO-8859-1 (and ASCII) definition.

     


HTML     OCTL   HEX   CMP   CHR   MEANING
------ + ---- + --- + --- + --- + ------------------------------
&#000; | \000 | =00 |     |     | Invalid (ASCII NUL)
&#001; | \001 | =01 |     |     | Unused (ASCII SOH)
&#002; | \002 | =02 |     |     | Unused (ASCII STX)
&#003; | \003 | =03 |     |     | Unused (ASCII ETX)
&#004; | \004 | =04 |     |     | Unused (ASCII EOT)
&#005; | \005 | =05 |     |     | Unused (ASCII ENQ)
&#006; | \006 | =06 |     |     | Unused (ASCII ACK)
&#007; | \007 | =07 |     |     | Unused (ASCII BEL, audible bell)
&#008; | \010 | =08 |     |     | Unused (ASCII BS, backspace)
&#009; | \011 | =09 |     |     | Horizontal tab (ASCII HT)
&#010; | \012 | =0A |     |     | Line feed (ASCII NL, newline)
&#011; | \013 | =0B |     |     | Unused (ASCII VT, vertical tab)
&#012; | \014 | =0C |     |     | Unused (ASCII NP, new page)
&#013; | \015 | =0D |     |     | Carriage Return (ASCII CR)
&#014; | \016 | =0E |     |     | Unused (ASCII SO)
&#015; | \017 | =0F |     |     | Unused (ASCII SI)
&#016; | \020 | =10 |     |     | Unused (ASCII DLE)
&#017; | \021 | =11 |     |     | Unused (ASCII DC1)
&#018; | \022 | =12 |     |     | Unused (ASCII DC2)
&#019; | \023 | =13 |     |     | Unused (ASCII DC3)
&#020; | \024 | =14 |     |     | Unused (ASCII DC4)
&#021; | \025 | =15 |     |     | Unused (ASCII NAK)
&#022; | \026 | =16 |     |     | Unused (ASCII SYN)
&#023; | \027 | =17 |     |     | Unused (ASCII ETB)
&#024; | \030 | =18 |     |     | Unused (ASCII CAN)
&#025; | \031 | =19 |     |     | Unused (ASCII EM)
&#026; | \032 | =1A |     |     | Unused (ASCII SUB)
&#027; | \033 | =1B |     |     | Unused (ASCII ESC, escape)
&#028; | \034 | =1C |     |     | Unused (ASCII FS)
&#029; | \035 | =1D |     |     | Unused (ASCII GS)
&#030; | \036 | =1E |     |     | Unused (ASCII RS)
&#031; | \037 | =1F |     |     | Unused (ASCII US)
&#032; | \040 | =20 |     | ( ) | Space (ASCII SP)
&#033; | \041 | =21 |     | (!) | Exclamation mark
&#034; | \042 | =22 |     | (") | Quotation mark (&quot;)
&#035; | \043 | =23 |     | (#) | Number sign
&#036; | \044 | =24 |     | ($) | Dollar sign
&#037; | \045 | =25 |     | (%) | Percent sign
&#038; | \046 | =26 |     | (&) | Ampersand (&amp;)
&#039; | \047 | =27 |     | (') | Apostrophe (right single quote)
&#040; | \050 | =28 |     | (() | Left parenthesis
&#041; | \051 | =29 |     | ()) | Right parenthesis
&#042; | \052 | =2A |     | (*) | Asterisk
&#043; | \053 | =2B |     | (+) | Plus sign
&#044; | \054 | =2C |     | (,) | Comma
&#045; | \055 | =2D |     | (-) | Hyphen
&#046; | \056 | =2E |     | (.) | Period (fullstop)
&#047; | \057 | =2F |     | (/) | Solidus (slash)
&#048; | \060 | =30 |     | (0) | Digit 0
. . .
&#057; | \071 | =39 |     | (9) | Digit 9
&#058; | \072 | =3A |     | (:) | Colon
&#059; | \073 | =3B |     | (;) | Semi-colon
&#060; | \074 | =3C |     | (<) | Less than (&lt;)
&#061; | \075 | =3D |     | (=) | Equals sign
&#062; | \076 | =3E |     | (>) | Greater than (&gt;)
&#063; | \077 | =3F |     | (?) | Question mark
&#064; | \100 | =40 |     | (@) | Commercial at-sign
&#065; | \101 | =41 |     | (A) | Uppercase letter A
. . .                          
&#090; | \132 | =5A |     | (Z) | Uppercase letter Z
&#091; | \133 | =5B |     | ([) | Left square bracket
&#092; | \134 | =5C |     | (\) | Reverse solidus (backslash)
&#093; | \135 | =5D |     | (]) | Right square bracket
&#094; | \136 | =5E |     | (^) | Caret
&#095; | \137 | =5F |     | (_) | Horizontal bar (underscore)
&#096; | \140 | =60 |     | (`) | Reverse apostrophe (left single quote)
&#097; | \141 | =61 |     | (a) | Lowercase letter a
. . .                          
&#122; | \172 | =7A |     | (z) | Lowercase letter z
&#123; | \173 | =7B |     | ({) | Left curly brace
&#124; | \174 | =7C |     | (|) | Vertical bar
&#125; | \175 | =7D |     | (}) | Right curly brace
&#126; | \176 | =7E |     | (~) | Tilde
&#127; | \177 | =7F |     |     | Unused (ASCII DEL)
&#128; | \200 | =80 |     |     | Unused
&#129; | \201 | =81 |     |     | Unused
&#130; | \202 | =82 |     |     | Unused
&#131; | \203 | =83 |     |     | Unused
&#132; | \204 | =84 |     |     | Unused
&#133; | \205 | =85 |     |     | Unused
&#134; | \206 | =86 |     |     | Unused
&#135; | \207 | =87 |     |     | Unused
&#136; | \210 | =88 |     |     | Unused
&#137; | \211 | =89 |     |     | Unused
&#138; | \212 | =8A |     |     | Unused
&#139; | \213 | =8B |     |     | Unused
&#140; | \214 | =8C |     |     | Unused
&#141; | \215 | =8D |     |     | Unused
&#142; | \216 | =8E |     |     | Unused
&#143; | \217 | =8F |     |     | Unused
&#144; | \220 | =90 |     |     | Unused
&#145; | \221 | =91 |     |     | Unused
&#146; | \222 | =92 |     |     | Unused
&#147; | \223 | =93 |     |     | Unused
&#148; | \224 | =94 |     |     | Unused
&#149; | \225 | =95 |     |     | Unused
&#150; | \226 | =96 |     |     | Unused
&#151; | \227 | =97 |     |     | Unused
&#152; | \230 | =98 |     |     | Unused
&#153; | \231 | =99 |     |     | Unused
&#154; | \232 | =9A |     |     | Unused
&#155; | \233 | =9B |     |     | Unused
&#156; | \234 | =9C |     |     | Unused
&#157; | \235 | =9D |     |     | Unused
&#158; | \236 | =9E |     |     | Unused
&#159; | \237 | =9F |     |     | Unused
&#160; | \240 | =A0 |     | ( ) | Non-breaking space (&nbsp;)
&#161; | \241 | =A1 | ! ! | (¡) | Inverted exclamation
&#162; | \242 | =A2 | c / | (¢) | Cent sign
&#163; | \243 | =A3 | l - | (£) | Pound sterling
&#164; | \244 | =A4 | o x | (¤) | General currency sign
&#165; | \245 | =A5 | y - | (¥) | Yen sign
&#166; | \246 | =A6 | | | | (¦) | Broken vertical bar
&#167; | \247 | =A7 | s o | (§) | Section sign
&#168; | \250 | =A8 | " " | (¨) | Umlaut (dieresis)
&#169; | \251 | =A9 | c o | (©) | Copyright
&#170; | \252 | =AA | - a | (ª) | Feminine ordinal
&#171; | \253 | =AB | < < | («) | Left angle quote, guillemotleft
&#172; | \254 | =AC | - , | (¬) | Not sign
&#173; | \255 | =AD | - - | (­) | Soft hyphen
&#174; | \256 | =AE | r o | (®) | Registered trademark
&#175; | \257 | =AF | ^ - | (¯) | Macron accent
&#176; | \260 | =B0 | ^ * | (°) | Degree sign
&#177; | \261 | =B1 | + - | (±) | Plus or minus
&#178; | \262 | =B2 | ^ 2 | (²) | Superscript two
&#179; | \263 | =B3 | ^ 3 | (³) | Superscript three
&#180; | \264 | =B4 | \ \ | (´) | Acute accent
&#181; | \265 | =B5 | / u | (µ) | Micro sign
&#182; | \266 | =B6 | P ! | (¶) | Paragraph sign
&#183; | \267 | =B7 | ^ . | (·) | Middle dot
&#184; | \270 | =B8 | , , | (¸) | Cedilla
&#185; | \271 | =B9 | ^ 1 | (¹) | Superscript one
&#186; | \272 | =BA | _ o | (º) | Masculine ordinal
&#187; | \273 | =BB | > > | (») | Right angle quote, guillemotright
&#188; | \274 | =BC | 1 4 | (¼) | Fraction one-fourth
&#189; | \275 | =BD | 1 2 | (½) | Fraction one-half
&#190; | \276 | =BE | 3 4 | (¾) | Fraction three-fourths
&#191; | \277 | =BF | ? ? | (¿) | Inverted question mark
&#192; | \300 | =C0 | A ` | (À) | Capital A, grave accent
&#193; | \301 | =C1 | A ' | (Á) | Capital A, acute accent
&#194; | \302 | =C2 | A ^ | (Â) | Capital A, circumflex accent
&#195; | \303 | =C3 | A ~ | (Ã) | Capital A, tilde
&#196; | \304 | =C4 | A " | (Ä) | Capital A, dieresis or umlaut mark
&#197; | \305 | =C5 | A * | (Å) | Capital A, ring
&#198; | \306 | =C6 | A E | (Æ) | Capital AE dipthong (ligature)
&#199; | \307 | =C7 | C , | (Ç) | Capital C, cedilla
&#200; | \310 | =C8 | E ` | (È) | Capital E, grave accent
&#201; | \311 | =C9 | E ' | (É) | Capital E, acute accent
&#202; | \312 | =CA | E ^ | (Ê) | Capital E, circumflex accent
&#203; | \313 | =CB | E " | (Ë) | Capital E, dieresis or umlaut mark
&#204; | \314 | =CC | I ` | (Ì) | Capital I, grave accent
&#205; | \315 | =CD | I ' | (Í) | Capital I, acute accent
&#206; | \316 | =CE | I ^ | (Î) | Capital I, circumflex accent
&#207; | \317 | =CF | I " | (Ï) | Capital I, dieresis or umlaut mark
&#208; | \320 | =D0 | D - | (Ð) | Capital Eth, Icelandic
&#209; | \321 | =D1 | N ~ | (Ñ) | Capital N, tilde
&#210; | \322 | =D2 | O ` | (Ò) | Capital O, grave accent
&#211; | \323 | =D3 | O ' | (Ó) | Capital O, acute accent
&#212; | \324 | =D4 | O ^ | (Ô) | Capital O, circumflex accent
&#213; | \325 | =D5 | O ~ | (Õ) | Capital O, tilde
&#214; | \326 | =D6 | O " | (Ö) | Capital O, dieresis or umlaut mark
&#215; | \327 | =D7 | x x | (×) | Multiply sign
&#216; | \330 | =D8 | O / | (Ø) | Capital O, slash
&#217; | \331 | =D9 | U ` | (Ù) | Capital U, grave accent
&#218; | \332 | =DA | U ' | (Ú) | Capital U, acute accent
&#219; | \333 | =DB | U ^ | (Û) | Capital U, circumflex accent
&#220; | \334 | =DC | U " | (Ü) | Capital U, dieresis or umlaut mark
&#221; | \335 | =DD | Y ' | (Ý) | Capital Y, acute accent
&#222; | \336 | =DE | P | | (Þ) | Capital THORN, Icelandic
&#223; | \337 | =DF | s s | (ß) | Small sharp s, German (sz ligature)
&#224; | \340 | =E0 | a ` | (à) | Small a, grave accent
&#225; | \341 | =E1 | a ' | (á) | Small a, acute accent
&#226; | \342 | =E2 | a ^ | (â) | Small a, circumflex accent
&#227; | \343 | =E3 | a ~ | (ã) | Small a, tilde
&#228; | \344 | =E4 | a " | (ä) | Small a, dieresis or umlaut mark
&#229; | \345 | =E5 | a * | (å) | Small a, ring
&#230; | \346 | =E6 | a e | (æ) | Small ae dipthong (ligature)
&#231; | \347 | =E7 | c , | (ç) | Small c, cedilla
&#232; | \350 | =E8 | e ` | (è) | Small e, grave accent
&#233; | \351 | =E9 | e ' | (é) | Small e, acute accent
&#234; | \352 | =EA | e ^ | (ê) | Small e, circumflex accent
&#235; | \353 | =EB | e " | (ë) | Small e, dieresis or umlaut mark
&#236; | \354 | =EC | i ` | (ì) | Small i, grave accent
&#237; | \355 | =ED | i ' | (í) | Small i, acute accent
&#238; | \356 | =EE | i ^ | (î) | Small i, circumflex accent
&#239; | \357 | =EF | i " | (ï) | Small i, dieresis or umlaut mark
&#240; | \360 | =F0 | d - | (ð) | Small eth, Icelandic
&#241; | \361 | =F1 | n ~ | (ñ) | Small n, tilde
&#242; | \362 | =F2 | o ` | (ò) | Small o, grave accent
&#243; | \363 | =F3 | o ' | (ó) | Small o, acute accent
&#244; | \364 | =F4 | o ^ | (ô) | Small o, circumflex accent
&#245; | \365 | =F5 | o ~ | (õ) | Small o, tilde
&#246; | \366 | =F6 | o " | (ö) | Small o, dieresis or umlaut mark
&#247; | \367 | =F7 | - : | (÷) | Division sign
&#248; | \370 | =F8 | o / | (ø) | Small o, slash
&#249; | \371 | =F9 | u ` | (ù) | Small u, grave accent
&#250; | \372 | =FA | u ' | (ú) | Small u, acute accent
&#251; | \373 | =FB | u ^ | (û) | Small u, circumflex accent
&#252; | \374 | =FC | u " | (ü) | Small u, dieresis or umlaut mark
&#253; | \375 | =FD | y ' | (ý) | Small y, acute accent
&#254; | \376 | =FE | p | | (þ) | Small thorn, Icelandic
&#255; | \377 | =FF | y " | (ÿ) | Small y, dieresis or umlaut mark
表格原文地址:http://www.ic.unicamp.br/~stolfi/EXPORT/www/ISO-8859-1-Encoding.html

            可以故意在代码中敲出一个全角的“,”,“。”编译一下看一下出错代码中的错误提示来验证在上边是可以找的着的。不过一个全角","出的错误是\357 \274 \214经查不是严格意义上的对应。这个还没有弄明白。

posted @ 2013-11-13 18:09  羽化成蝶  阅读(14947)  评论(0编辑  收藏  举报