On Aug 12, 2007, at 11:41 AM, Logan Capaldo wrote: > On 8/12/07, Guo Yangguang <gyg22 / 163.com> wrote: >> >> When i made my "three" migration using "rake db:migrate",an error >> displayed in my console window saying "001_create_products.rb: >> 14:syntax >> error, unexpected kEND,expecting $end". >> How do i manage this problem? >> More important,i want to know how can i make my app to display >> chinese correctly. >> thank you! > > > Well as far as proper display of chinese, can't help you there, > although you > may also want to consider that you need to be sending the correct > character > encoding at the http level as well (either with a header or meta > tag). But > that error just means you have an extra "end" at the end of > that file > 001_create_products.rb. Try deleting it. > > -- >> Posted via http://www.ruby-forum.com/. >> >> For language display, encoding is the first obvious part, but the font being used must also support the characters in the code ranges of the encoding. OP is using rails which is all defaulted to UTF8 so encoding is not the problem there. Likely, it is the fonts, however you should also make sure your editor is also set to UTF8 for your text files.