I update my application from rails 2 to 3, and when I 'require' this file, which has an email address validator, I get an “invalid multibyte output” error:
dtext = '[^\\\\x80]' pattern = /\A#{dtext}\z/
Any thoughts?
Try using:
pattern = /\A#{dtext}\z/, nil, 'n'
More details about encodings and regexp .
And I use and recommend this great article on encodings in Ruby .
Modify the rfc822.rb file and change the addr_spec line to the following:
addr_spec = Regexp.new("#{local_part}\\x40#{domain}", nil, 'n')
. , . https://github.com/saepia/rfc822/blob/master/lib/rfc822.rb
Source: https://habr.com/ru/post/1762015/More articles:Javascript source JSON help - jsonIs the WER web service API (winqual) documented anywhere - windows-error-reportingHow to minimize or restore an external application with the correct animation effect in Vista / Win7? - animationhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1762013/cannot-get-social-media-share-buttons-to-line-up-in-inline-list&usg=ALkJrhgis6r4K_NTqCAErP3Wwc1qTGAFXArails: create a parent, if it does not exist, when creating a child entry - ruby-on-railsWindows Phone 7 Application Performance Profiling (SL / XNA) - performanceСтороннее приложение в iFrame должно поддерживать сессию заголовка/верхнего кадра - .netCan you include C ++ snippets in C #? - c ++Warden vs Rack :: Auth :: Basic. Running HTTP-Basic-Auth in Ruby-Framework - authenticationInsertion into serialized array in PHP - phpAll Articles