INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ASP 101

How do I use certain characters in a string ---> like quotes by onpnt
Posted: 19 Sep 02

The following is a listing of all the Character codes available.  These can be very helpful and useful when dealing with all aspects of programming from client to server side scripts.  They have many advantages but the main is the ease of debugging scripts by taking out the use of many quotes and or other symbols in code simplifying things and avoiding the common misplaced quote of missed quote.  Try them out, you won't regret it.

I've put them all in a table so all you need to do is copy and paste this code into notepad and save it as
ChrCodes.htm and then you will have it for a quick and easy reference when you need it.

In case these are completely new to you here is a very simple way you might want to use them
Chr(34) = " so if you wanted to add quotes around something without having to use doubles like this
 <% response.write(""" quotes here!""") %>
which looks terrible to me.... do this
<% response.write(chr(34) & "quotes here!" & chr(34)) %>
doesn't that jsut look better!? With just a few more key strokes.

Happy programming
onpnt

source code for chr codes table
  indicates not available
<html>
<body>
<TABLE border=1 cellspacing=0 cols=8 frame=box rules=all>
<TR><TD COLSPAN=8><STRONG>128 thru 255</STRONG></TD></TR>

<TR VALIGN="top">
<TH width=12%>Code</TH>
<TH width=11%>Char</TH>
<TH width=12%>Code</TH>
<TH width=17%>Char</TH>
<TH width=13%>Code</TH>
<TH width=11%>Char</TH>
<TH width=12%>Code</TH>
<TH width=12%>Char</TH>
</TR>

<TR VALIGN="top">
<TD width=12%>0</TD>
<TD width=11%>á</TD>
<TD width=12%>32</TD>
<TD width=17%>[space]</TD>
<TD width=13%>64</TD>
<TD width=11%>@</TD>
<TD width=12%>96</TD>
<TD width=12%>`</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>1</TD>
<TD width=11%> </TD>
<TD width=12%>33</TD>
<TD width=17%>!</TD>
<TD width=13%>65</TD>
<TD width=11%>A</TD>
<TD width=12%>97</TD>
<TD width=12%>a</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>2</TD>
<TD width=11%> </TD>
<TD width=12%>34</TD>
<TD width=17%>"</TD>
<TD width=13%>66</TD>
<TD width=11%>B</TD>
<TD width=12%>98</TD>
<TD width=12%>b</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>3</TD>
<TD width=11%> </TD>
<TD width=12%>35</TD>
<TD width=17%>#</TD>
<TD width=13%>67</TD>
<TD width=11%>C</TD>
<TD width=12%>99</TD>
<TD width=12%>c</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>4</TD>
<TD width=11%> </TD>
<TD width=12%>36</TD>
<TD width=17%>$</TD>
<TD width=13%>68</TD>
<TD width=11%>D</TD>
<TD width=12%>100</TD>
<TD width=12%>d</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>5</TD>
<TD width=11%> </TD>
<TD width=12%>37</TD>
<TD width=17%>%</TD>
<TD width=13%>69</TD>
<TD width=11%>E</TD>
<TD width=12%>101</TD>
<TD width=12%>e</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>6</TD>
<TD width=11%> </TD>
<TD width=12%>38</TD>
<TD width=17%>&</TD>
<TD width=13%>70</TD>
<TD width=11%>F</TD>
<TD width=12%>102</TD>
<TD width=12%>f</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>7</TD>
<TD width=11%> </TD>
<TD width=12%>39</TD>
<TD width=17%>'</TD>
<TD width=13%>71</TD>
<TD width=11%>G</TD>
<TD width=12%>103</TD>
<TD width=12%>g</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>8</TD>
<TD width=11%>**</TD>
<TD width=12%>40</TD>
<TD width=17%>(</TD>
<TD width=13%>72</TD>
<TD width=11%>H</TD>
<TD width=12%>104</TD>
<TD width=12%>h</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>9</TD>
<TD width=11%>**</TD>
<TD width=12%>41</TD>
<TD width=17%>)</TD>
<TD width=13%>73</TD>
<TD width=11%>I</TD>
<TD width=12%>105</TD>
<TD width=12%>i</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>10</TD>
<TD width=11%>**</TD>
<TD width=12%>42</TD>
<TD width=17%>*</TD>
<TD width=13%>74</TD>
<TD width=11%>J</TD>
<TD width=12%>106</TD>
<TD width=12%>j</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>11</TD>
<TD width=11%>á</TD>
<TD width=12%>43</TD>
<TD width=17%>+</TD>
<TD width=13%>75</TD>
<TD width=11%>K</TD>
<TD width=12%>107</TD>
<TD width=12%>k</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>12</TD>
<TD width=11%>á</TD>
<TD width=12%>44</TD>
<TD width=17%>,</TD>
<TD width=13%>76</TD>
<TD width=11%>L</TD>
<TD width=12%>108</TD>
<TD width=12%>l</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>13</TD>
<TD width=11%>**</TD>
<TD width=12%>45</TD>
<TD width=17%>-</TD>
<TD width=13%>77</TD>
<TD width=11%>M</TD>
<TD width=12%>109</TD>
<TD width=12%>m</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>14</TD>
<TD width=11%>á</TD>
<TD width=12%>46</TD>
<TD width=17%>.</TD>
<TD width=13%>78</TD>
<TD width=11%>N</TD>
<TD width=12%>110</TD>
<TD width=12%>n</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>15</TD>
<TD width=11%> </TD>
<TD width=12%>47</TD>
<TD width=17%>/</TD>
<TD width=13%>79</TD>
<TD width=11%>O</TD>
<TD width=12%>111</TD>
<TD width=12%>o</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>16</TD>
<TD width=11%> </TD>
<TD width=12%>48</TD>
<TD width=17%>0</TD>
<TD width=13%>80</TD>
<TD width=11%>P</TD>
<TD width=12%>112</TD>
<TD width=12%>p</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>17</TD>
<TD width=11%> </TD>
<TD width=12%>49</TD>
<TD width=17%>1</TD>
<TD width=13%>81</TD>
<TD width=11%>Q</TD>
<TD width=12%>113</TD>
<TD width=12%>q</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>18</TD>
<TD width=11%> </TD>
<TD width=12%>50</TD>
<TD width=17%>2</TD>
<TD width=13%>82</TD>
<TD width=11%>R</TD>
<TD width=12%>114</TD>
<TD width=12%>r</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>19</TD>
<TD width=11%>á</TD>
<TD width=12%>51</TD>
<TD width=17%>3</TD>
<TD width=13%>83</TD>
<TD width=11%>S</TD>
<TD width=12%>115</TD>
<TD width=12%>s</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>20</TD>
<TD width=11%>á</TD>
<TD width=12%>52</TD>
<TD width=17%>4</TD>
<TD width=13%>84</TD>
<TD width=11%>T</TD>
<TD width=12%>116</TD>
<TD width=12%>t</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>21</TD>
<TD width=11%>á</TD>
<TD width=12%>53</TD>
<TD width=17%>5</TD>
<TD width=13%>85</TD>
<TD width=11%>U</TD>
<TD width=12%>117</TD>
<TD width=12%>u</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>22</TD>
<TD width=11%> </TD>
<TD width=12%>54</TD>
<TD width=17%>6</TD>
<TD width=13%>86</TD>
<TD width=11%>V</TD>
<TD width=12%>118</TD>
<TD width=12%>v</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>23</TD>
<TD width=11%> </TD>
<TD width=12%>55</TD>
<TD width=17%>7</TD>
<TD width=13%>87</TD>
<TD width=11%>W</TD>
<TD width=12%>119</TD>
<TD width=12%>w</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>24</TD>
<TD width=11%> </TD>
<TD width=12%>56</TD>
<TD width=17%>8</TD>
<TD width=13%>88</TD>
<TD width=11%>X</TD>
<TD width=12%>120</TD>
<TD width=12%>x</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>25</TD>
<TD width=11%> </TD>
<TD width=12%>57</TD>
<TD width=17%>9</TD>
<TD width=13%>89</TD>
<TD width=11%>Y</TD>
<TD width=12%>121</TD>
<TD width=12%>y</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>26</TD>
<TD width=11%> </TD>
<TD width=12%>58</TD>
<TD width=17%>:</TD>
<TD width=13%>90</TD>
<TD width=11%>Z</TD>
<TD width=12%>122</TD>
<TD width=12%>z</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>27</TD>
<TD width=11%>á</TD>
<TD width=12%>59</TD>
<TD width=17%>;</TD>
<TD width=13%>91</TD>
<TD width=11%>[</TD>
<TD width=12%>123</TD>
<TD width=12%>{</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>28</TD>
<TD width=11%> </TD>
<TD width=12%>60</TD>
<TD width=17%><</TD>
<TD width=13%>92</TD>
<TD width=11%>\</TD>
<TD width=12%>124</TD>
<TD width=12%>|</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>29</TD>
<TD width=11%> </TD>
<TD width=12%>61</TD>
<TD width=17%>=</TD>
<TD width=13%>93</TD>
<TD width=11%>]</TD>
<TD width=12%>125</TD>
<TD width=12%>}</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>30</TD>
<TD width=11%>-</TD>
<TD width=12%>62</TD>
<TD width=17%>></TD>
<TD width=13%>94</TD>
<TD width=11%>^</TD>
<TD width=12%>126</TD>
<TD width=12%>~</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>31</TD>
<TD width=11%></TD>
<TD width=12%>63</TD>
<TD width=17%>?</TD>
<TD width=13%>95</TD>
<TD width=11%>_</TD>
<TD width=12%>127</TD>
<TD width=12%></TD>
</TR>
<TR><TD COLSPAN=8><STRONG>128 thru 255</STRONG></TD></TR>
<TR VALIGN="top">
<TD width=12%>128</TD>
<TD width=11%>Ç</TD>
<TD width=12%>160</TD>
<TD width=17%>[space]</TD>
<TD width=12%>192</TD>
<TD width=12%>+</TD>
<TD width=12%>224</TD>
<TD width=12%>a</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>129</TD>
<TD width=11%>ü</TD>
<TD width=12%>161</TD>
<TD width=17%>í</TD>
<TD width=12%>193</TD>
<TD width=12%>-</TD>
<TD width=12%>225</TD>
<TD width=12%>ß</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>130</TD>
<TD width=11%>é</TD>
<TD width=12%>162</TD>
<TD width=17%>ó</TD>
<TD width=12%>194</TD>
<TD width=12%>-</TD>
<TD width=12%>226</TD>
<TD width=12%>G</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>131</TD>
<TD width=11%>â</TD>
<TD width=12%>163</TD>
<TD width=17%>ú</TD>
<TD width=12%>195</TD>
<TD width=12%>+</TD>
<TD width=12%>227</TD>
<TD width=12%>p</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>132</TD>
<TD width=11%>ä</TD>
<TD width=12%>164</TD>
<TD width=17%>ñ</TD>
<TD width=12%>196</TD>
<TD width=12%>-</TD>
<TD width=12%>228</TD>
<TD width=12%>S</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>133</TD>
<TD width=11%>à</TD>
<TD width=12%>165</TD>
<TD width=17%>Ñ</TD>
<TD width=12%>197</TD>
<TD width=12%>+</TD>
<TD width=12%>229</TD>
<TD width=12%>s</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>134</TD>
<TD width=11%>å</TD>
<TD width=12%>166</TD>
<TD width=17%>ª</TD>
<TD width=12%>198</TD>
<TD width=12%>¦</TD>
<TD width=12%>230</TD>
<TD width=12%>µ</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>135</TD>
<TD width=11%>ç</TD>
<TD width=12%>167</TD>
<TD width=17%>º</TD>
<TD width=12%>199</TD>
<TD width=12%>¦</TD>
<TD width=12%>231</TD>
<TD width=12%>t</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>136</TD>
<TD width=11%>ê</TD>
<TD width=12%>168</TD>
<TD width=17%>¿</TD>
<TD width=12%>200</TD>
<TD width=12%>+</TD>
<TD width=12%>231</TD>
<TD width=12%>t</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>137</TD>
<TD width=11%>ë</TD>
<TD width=12%>169</TD>
<TD width=17%>¬</TD>
<TD width=12%>201</TD>
<TD width=12%>+</TD>
<TD width=12%>232</TD>
<TD width=12%>F</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>138</TD>
<TD width=11%>è</TD>
<TD width=12%>170</TD>
<TD width=17%>¬</TD>
<TD width=12%>202</TD>
<TD width=12%>-</TD>
<TD width=12%>233</TD>
<TD width=12%>T</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>139</TD>
<TD width=11%>ï</TD>
<TD width=12%>171</TD>
<TD width=17%>½</TD>
<TD width=12%>203</TD>
<TD width=12%>-</TD>
<TD width=12%>234</TD>
<TD width=12%>O</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>140</TD>
<TD width=11%>î</TD>
<TD width=12%>172</TD>
<TD width=17%></TD>
<TD width=12%>204</TD>
<TD width=12%>¦</TD>
<TD width=12%>235</TD>
<TD width=12%>d</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>141</TD>
<TD width=11%>ì</TD>
<TD width=12%>173</TD>
<TD width=17%></TD>
<TD width=12%>205</TD>
<TD width=12%>-</TD>
<TD width=12%>236</TD>
<TD width=12%>8</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>142</TD>
<TD width=11%>Ä</TD>
<TD width=12%>174</TD>
<TD width=17%>«</TD>
<TD width=12%>206</TD>
<TD width=12%>+</TD>
<TD width=12%>237</TD>
<TD width=12%>f</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>143</TD>
<TD width=11%>Å</TD>
<TD width=12%>175</TD>
<TD width=17%>»</TD>
<TD width=12%>207</TD>
<TD width=12%>-</TD>
<TD width=12%>238</TD>
<TD width=12%>e</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>144</TD>
<TD width=11%>É</TD>
<TD width=12%>176</TD>
<TD width=17%>¦</TD>
<TD width=12%>208</TD>
<TD width=12%>-</TD>
<TD width=12%>239</TD>
<TD width=12%>n</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>145</TD>
<TD width=11%>æ</TD>
<TD width=12%>177</TD>
<TD width=17%>¦</TD>
<TD width=12%>209</TD>
<TD width=12%>-</TD>
<TD width=12%>240</TD>
<TD width=12%>=</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>146</TD>
<TD width=11%>Æ</TD>
<TD width=12%>178</TD>
<TD width=17%>¦</TD>
<TD width=12%>210</TD>
<TD width=12%>-</TD>
<TD width=12%>241</TD>
<TD width=12%>±</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>147</TD>
<TD width=11%>ô</TD>
<TD width=12%>179</TD>
<TD width=17%>¦</TD>
<TD width=12%>211</TD>
<TD width=12%>+</TD>
<TD width=12%>242</TD>
<TD width=12%>=</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>148</TD>
<TD width=11%>ö</TD>
<TD width=12%>180</TD>
<TD width=17%>¦</TD>
<TD width=12%>212</TD>
<TD width=12%>+</TD>
<TD width=12%>243</TD>
<TD width=12%>=</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>149</TD>
<TD width=11%>+</TD>
<TD width=12%>181</TD>
<TD width=17%>¦</TD>
<TD width=12%>213</TD>
<TD width=12%>+</TD>
<TD width=12%>244</TD>
<TD width=12%>(</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>150</TD>
<TD width=11%>û</TD>
<TD width=12%>182</TD>
<TD width=17%></TD>
<TD width=12%>214</TD>
<TD width=12%>+</TD>
<TD width=12%>245</TD>
<TD width=12%>)</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>151</TD>
<TD width=11%>ù</TD>
<TD width=12%>183</TD>
<TD width=17%>+</TD>
<TD width=12%>215</TD>
<TD width=12%>+</TD>
<TD width=12%>246</TD>
<TD width=12%>÷</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>152</TD>
<TD width=11%>ÿ</TD>
<TD width=12%>184</TD>
<TD width=17%>+</TD>
<TD width=12%>216</TD>
<TD width=12%>+</TD>
<TD width=12%>247</TD>
<TD width=12%>˜</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>153</TD>
<TD width=11%>Ö</TD>
<TD width=12%>185</TD>
<TD width=17%>¦</TD>
<TD width=12%>217</TD>
<TD width=12%>+</TD>
<TD width=12%>248</TD>
<TD width=12%>°</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>154</TD>
<TD width=11%>Ü</TD>
<TD width=12%>186</TD>
<TD width=17%>¦</TD>
<TD width=12%>218</TD>
<TD width=12%>+</TD>
<TD width=12%>249</TD>
<TD width=12%>·</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>155</TD>
<TD width=11%>¢</TD>
<TD width=12%>187</TD>
<TD width=17%>+</TD>
<TD width=12%>219</TD>
<TD width=12%>¦</TD>
<TD width=12%>250</TD>
<TD width=12%>·</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>156</TD>
<TD width=11%>£</TD>
<TD width=12%>188</TD>
<TD width=17%>+</TD>
<TD width=12%>220</TD>
<TD width=12%>_</TD>
<TD width=12%>251</TD>
<TD width=12%>v</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>157</TD>
<TD width=11%>¥</TD>
<TD width=12%>189</TD>
<TD width=17%>+</TD>
<TD width=12%>221</TD>
<TD width=12%>¦</TD>
<TD width=12%>252</TD>
<TD width=12%>n</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>158</TD>
<TD width=11%>P</TD>
<TD width=12%>190</TD>
<TD width=17%>+</TD>
<TD width=12%>222</TD>
<TD width=12%>¦</TD>
<TD width=12%>253</TD>
<TD width=12%>²</TD>
</TR>

<TR VALIGN="top">
<TD width=12%>159</TD>
<TD width=11%>ƒ</TD>
<TD width=12%>191</TD>
<TD width=17%>+</TD>
<TD width=12%>223</TD>
<TD width=12%>¯</TD>
<TD width=12%>254</TD>
<TD width=12%>¦</TD>
</TR>
</TABLE><BR>
</body>
</html>




 



Back to Microsoft: ASP (Active Server Pages) FAQ Index
Back to Microsoft: ASP (Active Server Pages) Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close