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
精彩评论