1<HTML> 2<HEAD> 3<TITLE> 4[Chapter 8] 8.3 Internationalization</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly & Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:35:51Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head> 5<BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC"> 6<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%"> 7<tr> 8<td width="25%" valign="TOP"> 9<img hspace=10 vspace=10 src="gifs/samba.s.gif" 10alt="Using Samba" align=left valign=top border=0> 11</td> 12<td height="105" valign="TOP"> 13<br> 14<H2>Using Samba</H2> 15<font size="-1"> 16Robert Eckstein, David Collier-Brown, Peter Kelly 17<br>1st Edition November 1999 18<br>1-56592-449-5, Order Number: 4495 19<br>416 pages, $34.95 20</font> 21<p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a> 22<p><a href="index.html">Table of Contents</a> 23</td> 24</tr> 25</table> 26<hr size=1 noshade> 27<!--sample chapter begins --> 28 29<center> 30<DIV CLASS="htmlnav"> 31<TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 32<TR> 33<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 34<A CLASS="sect1" HREF="ch08_02.html" TITLE="8.2 Magic Scripts"> 35<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.2 Magic Scripts" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36<B> 37<FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1"> 38<A CLASS="chapter" REL="up" HREF="ch08_01.html" TITLE="8. Additional Samba Information "> 39Chapter 8<br> 40Additional Samba Information </a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 41<A CLASS="sect1" HREF="ch08_04.html" TITLE="8.4 WinPopup Messages"> 42<IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.4 WinPopup Messages" BORDER="0"></a></td></tr></table> <hr noshade size=1></center> 43</div> 44<blockquote> 45<div> 46<H2 CLASS="sect1"> 47<A CLASS="title" NAME="ch08-91233"> 488.3 Internationalization</a></h2><P CLASS="para">Samba has a limited ability to speak foreign tongues: if you need to deal with characters that aren't in standard ASCII, some options that can help you are shown in <A CLASS="xref" HREF="ch08_03.html#ch08-40870"> 49Table 8.3</a>. Otherwise, you can skip over this section. </p><br> 50<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 51<CAPTION CLASS="table"> 52<A CLASS="title" NAME="ch08-40870"> 53Table 8.3: Networking Configuration Options </a></caption><THEAD CLASS="thead"> 54<TR CLASS="row" VALIGN="TOP"> 55<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 56<P CLASS="para"> 57Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 58<P CLASS="para"> 59Parameters</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 60<P CLASS="para"> 61Function</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 62<P CLASS="para"> 63Default</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 64<P CLASS="para"> 65Scope</p></th></tr></thead><TBODY CLASS="tbody"> 66<TR CLASS="row" VALIGN="TOP"> 67<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 68<P CLASS="para"> 69<CODE CLASS="literal"> 70client code page</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 71<P CLASS="para"> 72Described in this section</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 73<P CLASS="para"> 74Sets a code page to expect from clients</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 75<P CLASS="para"> 76850</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 77<P CLASS="para"> 78Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 79<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 80<P CLASS="para"> 81<CODE CLASS="literal"> 82character set</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 83<P CLASS="para"> 84Described in this section</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 85<P CLASS="para"> 86Translates code pages into alternate UNIX character sets</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 87<P CLASS="para"> 88None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 89<P CLASS="para"> 90Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 91<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 92<P CLASS="para"> 93<CODE CLASS="literal"> 94coding system</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 95<P CLASS="para"> 96Described in this section</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 97<P CLASS="para"> 98Translates code page 932 into an Asian character set</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 99<P CLASS="para"> 100None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 101<P CLASS="para"> 102Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 103<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 104<P CLASS="para"> 105<CODE CLASS="literal"> 106valid chars</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 107<P CLASS="para"> 108string (set of characters)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 109<P CLASS="para"> 110Obsolete: formerly added individual characters to a code page, and had to be used after setting client code page</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 111<P CLASS="para"> 112None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 113<P CLASS="para"> 114Global</p></td></tr></tbody></table><DIV CLASS="sect2"> 115<H3 CLASS="sect2"> 116<A CLASS="title" NAME="ch08-17721"> 1178.3.1 client code page</a></h3><P CLASS="para"> 118The character sets on Windows platforms hark back to the original concept of a <EM CLASS="emphasis"> 119code page</em>. These code pages are used by DOS and Windows clients to determine rules for mapping lowercase letters to uppercase letters. Samba can be instructed to use a variety of code pages through the use of the global <CODE CLASS="literal"> 120client</code> <CODE CLASS="literal"> 121code</code> <CODE CLASS="literal"> 122page</code> option in order to match the corresponding code page in use on the client. This option loads a code-page definition file, and can take the values specified in <A CLASS="xref" HREF="ch08_03.html#ch08-20815"> 123Table 8.4</a>. </p><br> 124<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 125<CAPTION CLASS="table"> 126<A CLASS="title" NAME="ch08-20815"> 127Table 8.4: Valid Code Pages with Samba 2.0 </a></caption><THEAD CLASS="thead"> 128<TR CLASS="row" VALIGN="TOP"> 129<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 130<P CLASS="para"> 131Code Page</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 132<P CLASS="para"> 133Definition</p></th></tr></thead><TBODY CLASS="tbody"> 134<TR CLASS="row" VALIGN="TOP"> 135<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 136<P CLASS="para"> 137<CODE CLASS="literal"> 138437</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 139<P CLASS="para">MS-DOS Latin (United States)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 140<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 141<P CLASS="para"> 142<CODE CLASS="literal"> 143737</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 144<P CLASS="para"> 145Windows 95 Greek</p></td></tr><TR CLASS="row" VALIGN="TOP"> 146<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 147<P CLASS="para"> 148<CODE CLASS="literal"> 149850</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 150<P CLASS="para"> 151MS-DOS Latin 1 (Western European)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 152<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 153<P CLASS="para"> 154<CODE CLASS="literal"> 155852</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 156<P CLASS="para"> 157MS-DOS Latin 2 (Eastern European)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 158<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 159<P CLASS="para"> 160<CODE CLASS="literal"> 161861</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 162<P CLASS="para"> 163MS-DOS Icelandic</p></td></tr><TR CLASS="row" VALIGN="TOP"> 164<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 165<P CLASS="para"> 166<CODE CLASS="literal"> 167866</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 168<P CLASS="para"> 169MS-DOS Cyrillic (Russian)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 170<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 171<P CLASS="para"> 172<CODE CLASS="literal"> 173932</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 174<P CLASS="para"> 175MS-DOS Japanese Shift-JIS</p></td></tr><TR CLASS="row" VALIGN="TOP"> 176<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 177<P CLASS="para"> 178<CODE CLASS="literal"> 179936</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 180<P CLASS="para"> 181MS-DOS Simplified Chinese</p></td></tr><TR CLASS="row" VALIGN="TOP"> 182<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 183<P CLASS="para"> 184<CODE CLASS="literal"> 185949</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 186<P CLASS="para"> 187MS-DOS Korean Hangul</p></td></tr><TR CLASS="row" VALIGN="TOP"> 188<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 189<P CLASS="para"> 190<CODE CLASS="literal"> 191950</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 192<P CLASS="para"> 193MS-DOS Traditional Chinese</p></td></tr></tbody></table><P CLASS="para"> 194You can set the client code page as follows:</p><PRE CLASS="programlisting"> 195[global] 196 client code page = 852</pre><P CLASS="para"> 197The default value of this option is 850. You can use the <EM CLASS="emphasis"> 198make_smbcodepage</em> tool that comes with Samba (by default in <I CLASS="filename"> 199/usr/local/samba/bin</i>) to create your own SMB code pages, in the event that those listed earlier are not sufficient.</p></div><DIV CLASS="sect2"> 200<H3 CLASS="sect2"> 201<A CLASS="title" NAME="ch08-pgfId-965812"> 2028.3.2 character set</a></h3><P CLASS="para"> 203The global <CODE CLASS="literal"> 204character</code> <CODE CLASS="literal"> 205set</code> option can be used to convert filenames offered through a DOS code page (see the previous section, <A CLASS="xref" HREF="ch08_03.html#ch08-17721"> 206Section 8.3.1, client code page</a>) to equivalents that can be represented by Unix character sets other than those in the United States. For example, if you want to convert the Western European MS-DOS character set on the client to a Western European Unix character set on the server, you can use the following in your configuration file:</p><PRE CLASS="programlisting"> 207[global] 208 client code page = 850 209 character set = ISO8859-1</pre><P CLASS="para"> 210Note that you must include a <CODE CLASS="literal"> 211client</code> <CODE CLASS="literal"> 212code</code> <CODE CLASS="literal"> 213page</code> option to specify the character set from which you are converting. The valid character sets (and their matching code pages) that Samba 2.0 accepts are listed in <A CLASS="xref" HREF="ch08_03.html#ch08-14126"> 214Table 8.5</a>: </p><br> 215<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 216<CAPTION CLASS="table"> 217<A CLASS="title" NAME="ch08-14126"> 218Table 8.5: Valid Character Sets with Samba 2.0 </a></caption><THEAD CLASS="thead"> 219<TR CLASS="row" VALIGN="TOP"> 220<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 221<P CLASS="para"> 222Character Set</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 223<P CLASS="para"> 224Matching Code Page</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 225<P CLASS="para"> 226Definition</p></th></tr></thead><TBODY CLASS="tbody"> 227<TR CLASS="row" VALIGN="TOP"> 228<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 229<P CLASS="para"> 230<CODE CLASS="literal"> 231ISO8859-1</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 232<P CLASS="para"> 233<CODE CLASS="literal"> 234850</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 235<P CLASS="para">Western European Unix</p></td></tr><TR CLASS="row" VALIGN="TOP"> 236<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 237<P CLASS="para"> 238<CODE CLASS="literal"> 239ISO8859-2</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 240<P CLASS="para"> 241<CODE CLASS="literal"> 242852</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 243<P CLASS="para"> 244Eastern European Unix</p></td></tr><TR CLASS="row" VALIGN="TOP"> 245<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 246<P CLASS="para"> 247<CODE CLASS="literal"> 248ISO8859-5</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 249<P CLASS="para"> 250<CODE CLASS="literal"> 251866</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 252<P CLASS="para"> 253Russian Cyrillic Unix</p></td></tr><TR CLASS="row" VALIGN="TOP"> 254<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 255<P CLASS="para"> 256<CODE CLASS="literal"> 257KOI8-R</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 258<P CLASS="para"> 259<CODE CLASS="literal"> 260866</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 261<P CLASS="para"> 262Alternate Russian Cyrillic Unix</p></td></tr></tbody></table><P CLASS="para"> 263Normally, the <CODE CLASS="literal"> 264character</code> <CODE CLASS="literal"> 265set</code> option is disabled completely.</p></div><DIV CLASS="sect2"> 266<H3 CLASS="sect2"> 267<A CLASS="title" NAME="ch08-pgfId-958761"> 2688.3.3 coding system</a></h3><P CLASS="para"> 269The <CODE CLASS="literal"> 270coding</code> <CODE CLASS="literal"> 271system</code> option is similar to the <CODE CLASS="literal"> 272character</code> <CODE CLASS="literal"> 273set</code> option. However, its purpose is to determine how to convert a Japanese Shift JIS code page into an appropriate Unix character set. In order to use this option, the <CODE CLASS="literal"> 274client</code> <CODE CLASS="literal"> 275code</code> <CODE CLASS="literal"> 276page</code> option described previously must be set to page 932. The valid coding systems that Samba 2.0 accepts are listed in <A CLASS="xref" HREF="ch08_03.html#ch08-57476"> 277Table 8.6</a>. </p><br> 278<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 279<CAPTION CLASS="table"> 280<A CLASS="title" NAME="ch08-57476"> 281Table 8.6: Valid Coding System Parameters with Samba 2.0 </a></caption><THEAD CLASS="thead"> 282<TR CLASS="row" VALIGN="TOP"> 283<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 284<P CLASS="para"> 285Character Set</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 286<P CLASS="para"> 287Definition</p></th></tr></thead><TBODY CLASS="tbody"> 288<TR CLASS="row" VALIGN="TOP"> 289<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 290<P CLASS="para"> 291<CODE CLASS="literal"> 292SJIS</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 293<P CLASS="para">Standard Shift JIS</p></td></tr><TR CLASS="row" VALIGN="TOP"> 294<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 295<P CLASS="para"> 296<CODE CLASS="literal"> 297JIS8</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 298<P CLASS="para"> 299Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 300<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 301<P CLASS="para"> 302<CODE CLASS="literal"> 303J8BB</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 304<P CLASS="para"> 305Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 306<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 307<P CLASS="para"> 308<CODE CLASS="literal"> 309J8BH</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 310<P CLASS="para"> 311Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 312<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 313<P CLASS="para"> 314<CODE CLASS="literal"> 315J8@B</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 316<P CLASS="para"> 317Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 318<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 319<P CLASS="para"> 320<CODE CLASS="literal"> 321J8@J</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 322<P CLASS="para"> 323Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 324<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 325<P CLASS="para"> 326<CODE CLASS="literal"> 327J8@H</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 328<P CLASS="para"> 329Eight-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 330<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 331<P CLASS="para"> 332<CODE CLASS="literal"> 333JIS7</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 334<P CLASS="para"> 335Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 336<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 337<P CLASS="para"> 338<CODE CLASS="literal"> 339J7BB</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 340<P CLASS="para"> 341Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 342<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 343<P CLASS="para"> 344<CODE CLASS="literal"> 345J7BH</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 346<P CLASS="para"> 347Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 348<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 349<P CLASS="para"> 350<CODE CLASS="literal"> 351J7@B</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 352<P CLASS="para"> 353Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 354<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 355<P CLASS="para"> 356<CODE CLASS="literal"> 357J7@J</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 358<P CLASS="para"> 359Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 360<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 361<P CLASS="para"> 362<CODE CLASS="literal"> 363J7@H</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 364<P CLASS="para"> 365Seven-bit JIS codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 366<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 367<P CLASS="para"> 368<CODE CLASS="literal"> 369JUNET</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 370<P CLASS="para"> 371JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 372<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 373<P CLASS="para"> 374<CODE CLASS="literal"> 375JUBB</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 376<P CLASS="para"> 377JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 378<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 379<P CLASS="para"> 380<CODE CLASS="literal"> 381JUBH</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 382<P CLASS="para"> 383JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 384<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 385<P CLASS="para"> 386<CODE CLASS="literal"> 387JU@B</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 388<P CLASS="para"> 389JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 390<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 391<P CLASS="para"> 392<CODE CLASS="literal"> 393JU@J</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 394<P CLASS="para"> 395JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 396<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 397<P CLASS="para"> 398<CODE CLASS="literal"> 399JU@H</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 400<P CLASS="para"> 401JUNET codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 402<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 403<P CLASS="para"> 404<CODE CLASS="literal"> 405EUC</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 406<P CLASS="para"> 407EUC codes</p></td></tr><TR CLASS="row" VALIGN="TOP"> 408<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 409<P CLASS="para"> 410<CODE CLASS="literal"> 411HEX</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 412<P CLASS="para"> 413Three-byte hexidecimal code</p></td></tr><TR CLASS="row" VALIGN="TOP"> 414<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 415<P CLASS="para"> 416<CODE CLASS="literal"> 417CAP</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 418<P CLASS="para"> 419Three-byte hexidecimal code (Columbia Appletalk Program)</p></td></tr></tbody></table></div><DIV CLASS="sect2"> 420<H3 CLASS="sect2"> 421<A CLASS="title" NAME="ch08-pgfId-958865"> 4228.3.4 valid chars</a></h3><P CLASS="para"> 423The <CODE CLASS="literal"> 424valid</code> <CODE CLASS="literal"> 425chars</code> option is an older Samba feature that will add individual characters to a code page. However, this option is being phased out in favor of more modern coding systems. You can use this option as follows:</p><PRE CLASS="programlisting"> 426valid chars = � 427valid chars = 0450:0420 0x0A20:0x0A00 428valid chars = A:a</pre><P CLASS="para"> 429Each of the characters in the list specified should be separated by spaces. If there is a colon between two characters or their numerical equivalents, the data to the left of the colon is considered an uppercase character, while the data to the right is considered the lowercase character. You can represent characters both by literals (if you can type them) and by octal, hexidecimal, or decimal Unicode equivalents.</p><P CLASS="para"> 430We recommend against using this option. Instead, go with one of the standard code pages listed earlier in this section. If you do use this option, however, it must be listed after the <CODE CLASS="literal"> 431client</code> <CODE CLASS="literal"> 432code</code> <CODE CLASS="literal"> 433page</code> to which you wish to add the character. Otherwise, the characters will not be added.</p></div></div></blockquote> 434<div> 435<center> 436<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 437<TR> 438<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 439<A CLASS="sect1" HREF="ch08_02.html" TITLE="8.2 Magic Scripts"> 440<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.2 Magic Scripts" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 441<A CLASS="book" HREF="index.html" TITLE=""> 442<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 443<A CLASS="sect1" HREF="ch08_04.html" TITLE="8.4 WinPopup Messages"> 444<IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.4 WinPopup Messages" BORDER="0"></a></td></tr><TR> 445<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">8.2 Magic Scripts</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 446<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 447<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 4488.4 WinPopup Messages</td></tr></table><hr noshade size=1></center> 449</div> 450 451<!-- End of sample chapter --> 452<CENTER> 453<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 454<A HREF="http://www.oreilly.com/"> 455<B>O'Reilly Home</B></A> <B> | </B> 456<A HREF="http://www.oreilly.com/sales/bookstores"> 457<B>O'Reilly Bookstores</B></A> <B> | </B> 458<A HREF="http://www.oreilly.com/order_new/"> 459<B>How to Order</B></A> <B> | </B> 460<A HREF="http://www.oreilly.com/oreilly/contact.html"> 461<B>O'Reilly Contacts<BR></B></A> 462<A HREF="http://www.oreilly.com/international/"> 463<B>International</B></A> <B> | </B> 464<A HREF="http://www.oreilly.com/oreilly/about.html"> 465<B>About O'Reilly</B></A> <B> | </B> 466<A HREF="http://www.oreilly.com/affiliates.html"> 467<B>Affiliated Companies</B></A><p> 468<EM>© 1999, O'Reilly & Associates, Inc.</EM> 469</FONT> 470</CENTER> 471</BODY> 472</html> 473