<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I'm trying to read and write ascii characters using FPC. I had no problems doing this years ago with Think Pascal & Code Warrior.</div><div><br></div><div>For some reason I'm not able to read and write ascii characters above ascii 127 with FPC. Can someone explain this to me?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Using this code:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span style="color: #2000d0"><span class="Apple-tab-span" style="white-space:pre"> </span>for</span> i:= 33 <span style="color: #2000d0">to</span> 226 <span style="color: #2000d0">do</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span class="Apple-tab-span" style="white-space: pre; "> </span>writeln<span style="color: rgb(0, 0, 0); ">(</span><font class="Apple-style-span" color="#9b9b9b">'Character: '</font><span style="color: rgb(0, 0, 0); ">, </span><span style="color: rgb(48, 0, 242); ">chr</span><span style="color: rgb(0, 0, 0); ">(i), </span><font class="Apple-style-span" color="#9b9b9b">' Ascii value: '</font><span style="color: rgb(0, 0, 0); ">, i:1);</span></div></div><div><br></div><div><div>Character: ! Ascii value: 33</div><div>Character: " Ascii value: 34</div><div>Character: # Ascii value: 35</div><div>Character: $ Ascii value: 36</div><div>Character: % Ascii value: 37</div><div>Character: & Ascii value: 38</div><div>Character: ' Ascii value: 39</div><div>Character: ( Ascii value: 40</div><div>Character: ) Ascii value: 41</div><div>Character: * Ascii value: 42</div><div>Character: + Ascii value: 43</div><div>Character: , Ascii value: 44</div><div>Character: - Ascii value: 45</div><div>Character: . Ascii value: 46</div><div>Character: / Ascii value: 47</div><div>Character: 0 Ascii value: 48</div><div>Character: 1 Ascii value: 49</div><div>Character: 2 Ascii value: 50</div><div>Character: 3 Ascii value: 51</div><div>Character: 4 Ascii value: 52</div><div>Character: 5 Ascii value: 53</div><div>Character: 6 Ascii value: 54</div><div>Character: 7 Ascii value: 55</div><div>Character: 8 Ascii value: 56</div><div>Character: 9 Ascii value: 57</div><div>Character: : Ascii value: 58</div><div>Character: ; Ascii value: 59</div><div>Character: < Ascii value: 60</div><div>Character: = Ascii value: 61</div><div>Character: > Ascii value: 62</div><div>Character: ? Ascii value: 63</div><div>Character: @ Ascii value: 64</div><div>Character: A Ascii value: 65</div><div>Character: B Ascii value: 66</div><div>Character: C Ascii value: 67</div><div>Character: D Ascii value: 68</div><div>Character: E Ascii value: 69</div><div>Character: F Ascii value: 70</div><div>Character: G Ascii value: 71</div><div>Character: H Ascii value: 72</div><div>Character: I Ascii value: 73</div><div>Character: J Ascii value: 74</div><div>Character: K Ascii value: 75</div><div>Character: L Ascii value: 76</div><div>Character: M Ascii value: 77</div><div>Character: N Ascii value: 78</div><div>Character: O Ascii value: 79</div><div>Character: P Ascii value: 80</div><div>Character: Q Ascii value: 81</div><div>Character: R Ascii value: 82</div><div>Character: S Ascii value: 83</div><div>Character: T Ascii value: 84</div><div>Character: U Ascii value: 85</div><div>Character: V Ascii value: 86</div><div>Character: W Ascii value: 87</div><div>Character: X Ascii value: 88</div><div>Character: Y Ascii value: 89</div><div>Character: Z Ascii value: 90</div><div>Character: [ Ascii value: 91</div><div>Character: \ Ascii value: 92</div><div>Character: ] Ascii value: 93</div><div>Character: ^ Ascii value: 94</div><div>Character: _ Ascii value: 95</div><div>Character: ` Ascii value: 96</div><div>Character: a Ascii value: 97</div><div>Character: b Ascii value: 98</div><div>Character: c Ascii value: 99</div><div>Character: d Ascii value: 100</div><div>Character: e Ascii value: 101</div><div>Character: f Ascii value: 102</div><div>Character: g Ascii value: 103</div><div>Character: h Ascii value: 104</div><div>Character: i Ascii value: 105</div><div>Character: j Ascii value: 106</div><div>Character: k Ascii value: 107</div><div>Character: l Ascii value: 108</div><div>Character: m Ascii value: 109</div><div>Character: n Ascii value: 110</div><div>Character: o Ascii value: 111</div><div>Character: p Ascii value: 112</div><div>Character: q Ascii value: 113</div><div>Character: r Ascii value: 114</div><div>Character: s Ascii value: 115</div><div>Character: t Ascii value: 116</div><div>Character: u Ascii value: 117</div><div>Character: v Ascii value: 118</div><div>Character: w Ascii value: 119</div><div>Character: x Ascii value: 120</div><div>Character: y Ascii value: 121</div><div>Character: z Ascii value: 122</div><div>Character: { Ascii value: 123</div><div>Character: | Ascii value: 124</div><div>Character: } Ascii value: 125</div><div>Character: ~ Ascii value: 126</div><div>Character: Ascii value: 127</div><div>Character: ? Ascii value: 128</div><div>Character: ? Ascii value: 129</div><div>Character: ? Ascii value: 130</div><div>Character: ? Ascii value: 131</div><div>Character: ? Ascii value: 132</div><div>Character: ? Ascii value: 133</div><div>Character: ? Ascii value: 134</div><div>Character: ? Ascii value: 135</div><div>Character: ? Ascii value: 136</div><div>Character: ? Ascii value: 137</div></div><div><br></div><div>truncated for brevity.</div><div><br></div><div><br><div>
<div>Thomas Young</div><div>mobile email: <a href="mailto:tygraphics@me.com">tygraphics@me.com</a></div></div></div></body></html>