Technology Insights

rails 1.2 default charset override

Ruby on Rails 1.2 and above automatically set a Content-type header including charset=UTF-8, which is well and good if you’re designing an application from scratch – JoelOnSoftware has a good introduction to character sets, for those who need a refresher – but breaks things in subtle ways if you are upgrading a legacy Rails 1.1…

Technology Errors

Fatal error: Cannot redeclare tc_post()

The entire error I recieved was: Fatal error: Cannot redeclare tc_post() (previously declared in www/wp-content/plugins/text-control.php:20) in www/wp-content/plugins/text-control/text-control.php on line 33 When upgrading the WordPress plugin text-control I was getting this error when trying to activate text-control. I ended up remembering that the markdown.php had not worked on initial installation so I replaced it with the…