meltingice/psd.js — pull request #9 by meltingice (2014-08-08 17:11:33+00:00)
Title: A problem about character conversion of psd.js

Hi meltingice, when I use psd.js , I find it doesn't deal with text layer, so I write a module according to the file in the layer_info folder, here is the file link: https://github.com/imgqb/psd.js/blob/textLayer/lib/psd/layer_info/text_elements.coffee

And I was surprised to find I can get the infomation in the text layer using the code below
```
psd.tree().children()[0].get('textElements').textData;
```
And the text value is stores in the 'Txt ' field. It's really exciting.

But, the problem attendant. I'm from China, so there are some Chinese characters in the text layer.And I read the descriptor.coffee and file.coffee, find there are using 'String.fromCharCode()' to convert characters. So, I only see garbled text in CMD.

Although I try to use ‘charCodeAt()’ to get an array, then use 'new Buffer(array)' to create a buffer in node.js, finally try to decode the buffer. However , it's still failed.

My programming skills and knowledge is not good.So, could you give some advices. Thanks :)