Solving UTF-8 issue with YUI Doc

    Posted At : May 16, 2009 2:53 PM

I recently encountered an error when trying to parse a javascript document with YUI DOC. YUI Doc is a Python application used at build time to generate API documentation for JavaScript code. The javascript file had a few non-standard characters that were causing YUI Doc to crash with the following error:

Traceback (most recent call last):
  File "C:\yuidoc\bin\yuidoc.py", line 104, in?    main()
  File "C:\yuidoc\bin\yuidoc.py", line 86, in main    opts.newext )
  File "C:\yuidoc\bin\yuidoc_highlight.py", line 82, in __init__    highlightDir(os.path.abspath(i))
  File "C:\yuidoc\bin\yuidoc_highlight.py", line 68, in highlightDir    highlightFile(path, i)
  File "C:\yuidoc\bin\yuidoc_highlight.py", line 57, in highlightFile    out.writelines(highlighted)
TypeError: writelines() argument must be a sequence of strings

The fix was rather simple. Edit yuidoc_highlight.py

change line 57

out.writelines(highlighted)
to
out.writelines(highlighted.encode('utf-8'))

 JSGantt 1.0 Launched on google code

    Posted At : October 1, 2008 10:19 AM

JSGantt has officially launched on google code:

http://code.google.com/p/jsgantt/

A few developers are already working on wrappers for PHP, .NET, JSP and ColdFusion. Bleeding edge builds will be available via SVN.

You can also download the current version via the main site at http://www.jsgantt.com

 JSGantt now in Beta - New site and features

    Posted At : September 25, 2008 12:40 PM

Response to JSGantt has been overwhelming. I got over 100 emails from developers around the world. I am pleased to announce a new site http://www.jsgantt.com and a new beta version of JSGantt.

The main new feature is the ability to load the task data from an external XML file using the new JSGantt.parseXML() method. Some look and feel as well as performance enhancements have been made.

Please note that the Gantt chart API has changed since the initial alpha. Instead of constantly adding arguments to the GanttChart() method there are now only three required arguments and 3 new configuration methods:

  • g.setShowRes(pShow) - Show/Hide Responsible (0/1)
  • g.setShowDur(pShow) -Show/Hide Duration (0/1)
  • g.setShowComp(pShow) - Show/Hide % Complete(0/1)


After a long and overdue overhaul of the popular CF_Gantt custom tag, I am pleased to announce the Alpha version of JSGantt. I've enlisted another super coder and BTPOG we got through rewriting that awful piece of code.

JSGantt is now available for PHP, ASP/.NET, Java and almost anyone else for free.


  • This component is 100% Javascript and CSS
  • No images were used or harmed in the making of this tag
  • Completely buzzword compliant including AJAX !
  • This component is free
  • Beta expected in September
  • Bugs/Suggestions are welcome

JSGantt javascript component can be downloaded here.

CF_Gantt 3.0 ColdFusion wrapper can be downloaded here

Powered by BlogCFC

HostMySite.com Web Hosting Provided by www.HostMySite.com

Aggregated by fullasagoog.com
[Valid RSS]

Add to Google