<?php 


include("../../../../../site-common/common-functions.php");


set_title("January 25, 2007 : Jeremiah Oeltjen's Blog");

page_start();
?>
<div class="breadcrumb">
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/" itemprop="url"><span itemprop="title">Home</span></a> &#x203a; 
</div>

<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/" itemprop="url"><span itemprop="title">Blog</span></a> &#x203a; 
</div>


<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/archives/2007/" itemprop="url"><span itemprop="title">2007</span></a> &#x203a; 
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/archives/2007/01/" itemprop="url"><span itemprop="title">January</span></a> &#x203a; 
</div>
<div class="this-node">
<span class="title">25</span>
</div>


</div>

<div class="blog">

<div id="menu">

<a href="https://jeremiah.oeltjen.us/blog/archives/2007/01/16/">&laquo; January 16, 2007</a> &#x2039;

<a href="https://jeremiah.oeltjen.us/blog/">Main</a>

&#x203a; <a href="https://jeremiah.oeltjen.us/blog/archives/2007/03/27/">March 27, 2007 &raquo;</a>

</div>

</div>

<div class="blog">




<h2 class="date">January 25, 2007</h2>


<div class="blogbody">
<a name="000098"></a>
<h3 class="title">My favorite Firefox Extensions</h3>

<p>
I've compiled a list of my some of my current favorite extensions for Firefox.
</p>


<ul>
<li><a href="http://flashblock.mozdev.org/">Flashblock</a> - Just about everyone already knows about this. I think it was the first Firefox extension I ever installed.</li>
<li><a href="http://chrispederick.com/work/webdeveloper/">Web Developer</a> - If you are in the business this is a must have. It makes it easy to edit CSS and instantly see the changes. Also allows you to disable the cache, view just about everything that's not normally visible on a page (e.g. element class and id names), and has quick access buttons to common functions like "View Source."</li>
<li><a href="http://varun21.googlepages.com/main.html">Colorful Tabs</a> - Changes the tabs' colors. Makes them stand out a little.</li>
<li><a href="http://livehttpheaders.mozdev.org/">Live HTTP Headers</a> - Lets you view the HTTP Request and Response headers for a page. Optionally loads in the sidebar so you can watch them in real time.</li>
<li><a href="http://sessionmanager.mozdev.org/">Session Manager</a> - Saves you tabs, current pages, and browsing history when you exit. The next time you start everything goes back to the way you left it.</li>
</ul><p>
I have more, but those are the ones I use most often. 
</p>


<div class="posted">
Posted by <a href="http://jeremiah.oeltjen.us/" rel="author">Jeremiah Oeltjen</a> at <a href="https://jeremiah.oeltjen.us/blog/archives/2007/01/25/my-favorite-firefox-extensions"><time datetime="2007-01-25T23:12:22-06:00">11:12 PM</time></a>

<!--
| <a href="https://jeremiah.oeltjen.us/mt/mt-comments.cgi?entry_id=98" onclick="OpenComments(this.href); return false">Comments (0)</a>
-->
| <a href="https://jeremiah.oeltjen.us/blog/archives/2007/01/25/my-favorite-firefox-extensions#comments">Comments (0)</a>


</div>

</div>






<div class="blogbody">
<a name="000097"></a>
<h3 class="title">Character Sets</h3>

<p>It is sometimes easy to forget the importance of character sets when developing web applications. I would venture to guess that many developers don't know how to handle issues such as <acronym title="bi-directional">BiDi</acronym> text or correctly handle multi-byte characters. I have spent a considerable portion of the last month experimenting with sending Unicode characters to a web browser and I have discovered a few hints and "gotcha's" that I would like to pass along.</p>
<ul>
<li>PHP is pretty much multi-byte handicapped. Period.</li>
<li>In Java servlets (and I suppose <abbr title="Java Server Pages">JSPs</abbr>) add the preferred character encoding to the Content-type header before getting the PrintWriter from the response. This will set the encoding of the Writer to the charset in the Content-type header. I was doing unnecessarily wrapping OutputStreamWriters around the HttpServletResponse's OutputStream to accomplish this manually. It's so much nicer (and cleaner) to have the underlying implementation do this for you.</li>
<li>Since ColdFusion runs in Java, it too automatically determines the character set and encoding to use from the Content-type header if you specify one. To do this use the &lt;cfcontent&gt; tag like this <code>&lt;cfcontent type="text/html; charset=utf-8"&gt;</code>. </li>
<li>Here's the gotcha with ColdFusion (and JSP perhaps, I haven't tried it): Templates are read using the platform's default character set, Windows-1252 on English Windows systems. The characters are stored internally as <abbr title="Unicode Character Set">UCS</abbr>-2 (it's Java after all), and encoded using your specified character set before being sent to the output buffer. This can be overridden with the &lt;cfprocessingdirective&gt; tag.</li>
</ul>



<div class="posted">
Posted by <a href="http://jeremiah.oeltjen.us/" rel="author">Jeremiah Oeltjen</a> at <a href="https://jeremiah.oeltjen.us/blog/archives/2007/01/25/character-sets"><time datetime="2007-01-25T00:34:08-06:00">12:34 AM</time></a>

<!--
| <a href="https://jeremiah.oeltjen.us/mt/mt-comments.cgi?entry_id=97" onclick="OpenComments(this.href); return false">Comments (0)</a>
-->
| <a href="https://jeremiah.oeltjen.us/blog/archives/2007/01/25/character-sets#comments">Comments (0)</a>


</div>

</div>


</div>
<?php
page_end();
?>
