<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Thank you for the article. It was very helpful.</div><div><br></div>Why is it I can read and write a string that contains characters in the upper 128 but can't read & write them as individual char?<div><br></div><div>Specifically I need to read the copyright (169), trademark (170) and registration (168) characters. Any suggestions on how I can do this?</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Thomas Young</div><div>cell: 330-256-7064</div><div>mobile email: <a href="mailto:tygraphics@me.com">tygraphics@me.com</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 6, 2011, at 2:23 AM, David Emerson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed 5 Oct 2011, Thomas Young wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm trying to read and write ascii characters using FPC. I had no problems<br></blockquote><blockquote type="cite">doing this years ago with Think Pascal & Code Warrior. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">For some reason I'm not able to read and write ascii characters above ascii<br></blockquote><blockquote type="cite">127 with FPC. Can someone explain this to me? <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks in advance!<br></blockquote><br>The world has changed, and globalization has reached your computer. Your <br>computer is almost definitely using a different character set today than it was <br>back in those days long ago. read this: <br><a href="http://www.joelonsoftware.com/articles/Unicode.html">http://www.joelonsoftware.com/articles/Unicode.html</a><br>The Absolute Minimum Every Software Developer Absolutely, Positively Must Know <br>About Unicode and Character Sets (No Excuses!)<br><br>~D.<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Using this code:<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>for i:= 33 to 226 do<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>writeln('Character: ', chr(i), ' Ascii value: ', i:1);<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Character: ! Ascii value: 33<br></blockquote><blockquote type="cite">Character: " Ascii value: 34<br></blockquote><blockquote type="cite">Character: # Ascii value: 35<br></blockquote><blockquote type="cite">Character: $ Ascii value: 36<br></blockquote><blockquote type="cite">Character: % Ascii value: 37<br></blockquote><blockquote type="cite">Character: & Ascii value: 38<br></blockquote><blockquote type="cite">Character: ' Ascii value: 39<br></blockquote><blockquote type="cite">Character: ( Ascii value: 40<br></blockquote><blockquote type="cite">Character: ) Ascii value: 41<br></blockquote><blockquote type="cite">Character: * Ascii value: 42<br></blockquote><blockquote type="cite">Character: + Ascii value: 43<br></blockquote><blockquote type="cite">Character: , Ascii value: 44<br></blockquote><blockquote type="cite">Character: - Ascii value: 45<br></blockquote><blockquote type="cite">Character: . Ascii value: 46<br></blockquote><blockquote type="cite">Character: / Ascii value: 47<br></blockquote><blockquote type="cite">Character: 0 Ascii value: 48<br></blockquote><blockquote type="cite">Character: 1 Ascii value: 49<br></blockquote><blockquote type="cite">Character: 2 Ascii value: 50<br></blockquote><blockquote type="cite">Character: 3 Ascii value: 51<br></blockquote><blockquote type="cite">Character: 4 Ascii value: 52<br></blockquote><blockquote type="cite">Character: 5 Ascii value: 53<br></blockquote><blockquote type="cite">Character: 6 Ascii value: 54<br></blockquote><blockquote type="cite">Character: 7 Ascii value: 55<br></blockquote><blockquote type="cite">Character: 8 Ascii value: 56<br></blockquote><blockquote type="cite">Character: 9 Ascii value: 57<br></blockquote><blockquote type="cite">Character: : Ascii value: 58<br></blockquote><blockquote type="cite">Character: ; Ascii value: 59<br></blockquote><blockquote type="cite">Character: < Ascii value: 60<br></blockquote><blockquote type="cite">Character: = Ascii value: 61<br></blockquote><blockquote type="cite">Character: > Ascii value: 62<br></blockquote><blockquote type="cite">Character: ? Ascii value: 63<br></blockquote><blockquote type="cite">Character: @ Ascii value: 64<br></blockquote><blockquote type="cite">Character: A Ascii value: 65<br></blockquote><blockquote type="cite">Character: B Ascii value: 66<br></blockquote><blockquote type="cite">Character: C Ascii value: 67<br></blockquote><blockquote type="cite">Character: D Ascii value: 68<br></blockquote><blockquote type="cite">Character: E Ascii value: 69<br></blockquote><blockquote type="cite">Character: F Ascii value: 70<br></blockquote><blockquote type="cite">Character: G Ascii value: 71<br></blockquote><blockquote type="cite">Character: H Ascii value: 72<br></blockquote><blockquote type="cite">Character: I Ascii value: 73<br></blockquote><blockquote type="cite">Character: J Ascii value: 74<br></blockquote><blockquote type="cite">Character: K Ascii value: 75<br></blockquote><blockquote type="cite">Character: L Ascii value: 76<br></blockquote><blockquote type="cite">Character: M Ascii value: 77<br></blockquote><blockquote type="cite">Character: N Ascii value: 78<br></blockquote><blockquote type="cite">Character: O Ascii value: 79<br></blockquote><blockquote type="cite">Character: P Ascii value: 80<br></blockquote><blockquote type="cite">Character: Q Ascii value: 81<br></blockquote><blockquote type="cite">Character: R Ascii value: 82<br></blockquote><blockquote type="cite">Character: S Ascii value: 83<br></blockquote><blockquote type="cite">Character: T Ascii value: 84<br></blockquote><blockquote type="cite">Character: U Ascii value: 85<br></blockquote><blockquote type="cite">Character: V Ascii value: 86<br></blockquote><blockquote type="cite">Character: W Ascii value: 87<br></blockquote><blockquote type="cite">Character: X Ascii value: 88<br></blockquote><blockquote type="cite">Character: Y Ascii value: 89<br></blockquote><blockquote type="cite">Character: Z Ascii value: 90<br></blockquote><blockquote type="cite">Character: [ Ascii value: 91<br></blockquote><blockquote type="cite">Character: \ Ascii value: 92<br></blockquote><blockquote type="cite">Character: ] Ascii value: 93<br></blockquote><blockquote type="cite">Character: ^ Ascii value: 94<br></blockquote><blockquote type="cite">Character: _ Ascii value: 95<br></blockquote><blockquote type="cite">Character: ` Ascii value: 96<br></blockquote><blockquote type="cite">Character: a Ascii value: 97<br></blockquote><blockquote type="cite">Character: b Ascii value: 98<br></blockquote><blockquote type="cite">Character: c Ascii value: 99<br></blockquote><blockquote type="cite">Character: d Ascii value: 100<br></blockquote><blockquote type="cite">Character: e Ascii value: 101<br></blockquote><blockquote type="cite">Character: f Ascii value: 102<br></blockquote><blockquote type="cite">Character: g Ascii value: 103<br></blockquote><blockquote type="cite">Character: h Ascii value: 104<br></blockquote><blockquote type="cite">Character: i Ascii value: 105<br></blockquote><blockquote type="cite">Character: j Ascii value: 106<br></blockquote><blockquote type="cite">Character: k Ascii value: 107<br></blockquote><blockquote type="cite">Character: l Ascii value: 108<br></blockquote><blockquote type="cite">Character: m Ascii value: 109<br></blockquote><blockquote type="cite">Character: n Ascii value: 110<br></blockquote><blockquote type="cite">Character: o Ascii value: 111<br></blockquote><blockquote type="cite">Character: p Ascii value: 112<br></blockquote><blockquote type="cite">Character: q Ascii value: 113<br></blockquote><blockquote type="cite">Character: r Ascii value: 114<br></blockquote><blockquote type="cite">Character: s Ascii value: 115<br></blockquote><blockquote type="cite">Character: t Ascii value: 116<br></blockquote><blockquote type="cite">Character: u Ascii value: 117<br></blockquote><blockquote type="cite">Character: v Ascii value: 118<br></blockquote><blockquote type="cite">Character: w Ascii value: 119<br></blockquote><blockquote type="cite">Character: x Ascii value: 120<br></blockquote><blockquote type="cite">Character: y Ascii value: 121<br></blockquote><blockquote type="cite">Character: z Ascii value: 122<br></blockquote><blockquote type="cite">Character: { Ascii value: 123<br></blockquote><blockquote type="cite">Character: | Ascii value: 124<br></blockquote><blockquote type="cite">Character: } Ascii value: 125<br></blockquote><blockquote type="cite">Character: ~ Ascii value: 126<br></blockquote><blockquote type="cite">Character: Ascii value: 127<br></blockquote><blockquote type="cite">Character: ? Ascii value: 128<br></blockquote><blockquote type="cite">Character: ? Ascii value: 129<br></blockquote><blockquote type="cite">Character: ? Ascii value: 130<br></blockquote><blockquote type="cite">Character: ? Ascii value: 131<br></blockquote><blockquote type="cite">Character: ? Ascii value: 132<br></blockquote><blockquote type="cite">Character: ? Ascii value: 133<br></blockquote><blockquote type="cite">Character: ? Ascii value: 134<br></blockquote><blockquote type="cite">Character: ? Ascii value: 135<br></blockquote><blockquote type="cite">Character: ? Ascii value: 136<br></blockquote><blockquote type="cite">Character: ? Ascii value: 137<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">truncated for brevity.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thomas Young<br></blockquote><blockquote type="cite">mobile email: tygraphics@me.com<br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>_______________________________________________<br>fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>http://lists.freepascal.org/mailman/listinfo/fpc-pascal<br></div></blockquote></div><br></div></body></html>