Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

special characters it does not works #279

Closed
hyperrjas opened this Issue · 9 comments

2 participants

@hyperrjas

I have this regex:

validates_format_of :content, :with => /^[\p{L}\s\p{N}._@-]+$/u

characters ñ,áéíóú are unrecognized.

you can see it working fine in http://www.rubular.com/r/BZ4CyHCwpP

How can I add this characters?

Thank you!

@bcardarella
Owner

Is your file in UTF-8 mode?

@hyperrjas

I'm using in my model # encoding: utf-8

but it does not works :(.

@bcardarella
Owner

can you gist the resulting html?

@hyperrjas

I have this head in my aplication.html.erb layout.

https://gist.github.com/1859398

@bcardarella
Owner

If you're not going to give me what I ask for I cannot help you. I need the resulting HTML from the form

@hyperrjas

Sorry I have pasted form html from firebug. do you need this?

https://gist.github.com/1859398

Thank you!

@bcardarella
Owner

I don't care about fire bug. Just copy/paste the entire html into gist. This is not what I need. Please do as I ask.

@hyperrjas

I have copy/pate now the new.html.erb file is this that you need? sorry for I dont understand...

https://gist.github.com/1859398

@bcardarella
Owner

I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.