开发者

RMagick / Imagemagick string conversion UTF-8

I'm uploading pictures in different sizes with Paperclip. This all works fine. Now I'm adding a text layer with RMagick (annotate) to each photo for legal copyright info. This works fine too.

The problem starts when I'm trying to add the copyright symbol © to this string. It will add this dirty  in front of the ©

My string now looks like this:

© TheRestOfTheString

My code:

 myString = "TheRestOfTheString"
 @string = "(c) 开发者_如何学编程" + myString

The (c) genrates automatically a © symbol in my Coda editor. The file is UTF-8 coded. Where am I missing out?

Important to know: on my mac (10.7, Imagemagick + RMagick) the string gets generated correctly, when I deploy to the server I gets this  symbol in front of it.

Thanks in advance! Wouter

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜