草庐IT

INCOMPATIBLE

全部标签

ruby - 在我的 ramaze 应用程序上显示 £ 符号时,我收到 "incompatible character encodings: CP850 and UTF-8"

在我的ramaze应用程序上显示£符号时,我收到“不兼容的字符编码:CP850和UTF-8”。我怎样才能摆脱这个错误?我的head标签中有UTF-8元标签。当我用键盘输入£符号时会发生这种情况。看。我已将以下代码放入我的ruby​​文件中,但没有解决问题。#encoding:UTF-8Encoding.default_external='utf-8'Encoding.default_internal=Encoding::UTF_8 最佳答案 尝试强制编码以查看是否可以解决问题:your_string.force_encoding(:

ruby-on-rails - 由于 cookie 的 8 位编码(Rails 3 和 Ruby 1.9)导致错误 'incompatible character encodings: ASCII-8BIT and UTF-8'

我将一个使用1.8.7的网络应用程序移到了1.9.2,现在我一直在使用incompatiblecharacterencodings:ASCII-8BITandUTF-8我有UTF-8的数据库编码,我还有'config.encoding="utf-8"'。我看到了一些想法作为可能的解决方法并添加了Encoding.default_external=Encoding::UTF_8Encoding.default_internal=Encoding::UTF_8但是也没用。出现此错误的一段特定代码是%ul.address-@user.address.split(',').eachdo|lin

ruby-on-rails - rails - postgres 错误 : Reason: Incompatible library version: libpq. 5.dylib 需要 1.0.0 或更高版本,

我无法在我的Mac(10.6.8)上设置Ruby(1.9.3)、Rails和Postgres(9.0.8)。每次运行railsconsole时,我都会收到以下错误:/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg.rb:4:in`require':dlopen(/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg_ext.bundle,9):Librarynotloaded:@loader_path/../lib/libssl.dy

ruby - 安装 RDoc 文档时出错 : incompatible encoding regexp match

上周,在一些gem安装或gem更新操作中,我收到了与这些类似的错误:ERROR:Whilegeneratingdocumentationforsinatra-1.3.1...MESSAGE:errorgeneratingC:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/sinatra-1.3.1/rdoc/README_de_rdoc.html:incompatibleencodingregexpmatch(UTF-8regexpwithIBM437string)(Encoding::CompatibilityError)类似的:E

ruby-on-rails - ruby 正则表达式错误 : incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)

我遇到了两个错误,都与编码有关并且都相关。我在启动WEBrick时遇到的第一个错误(技术上是警告):/Users/USERNAME/example/config/initializers/bb-ruby.rb:54:warning:invalidUnicodeProperty\P:/\:\-?\P/它所指的行是:/\:\-?\P/,这只是一些正则表达式,最终是这个block的一部分:@@tags['Razzing']=[/\:\-?\P/,'','Razzing',':P',:razzing]然后,我在解析一些字符串时也得到了以下错误(大概是由于同一行)...Encoding::Com

ruby-on-rails - 如何在 OS X 上使用 ruby​​ 2.3 为 mysql2 gem 解析 "incompatible library version"?

我使用的是ruby​​2.3,在gemfile中,我列出了mysql2gem。但是当我尝试运行rakedb:migrate时,我得到以下信息:/Users/me/.gem/ruby/2.3.0/gems/mysql2-0.4.2/lib/mysql2.rb:31:in`require':incompatiblelibraryversion-/Users/me/.gem/ruby/2.3.0/gems/mysql2-0.4.2/lib/mysql2/mysql2.bundle(fatal)我似乎无法绕过这个。我用Homebrew安装了Mysql5.7,尝试更新包,卸载并重新安装mysql

javascript - flowtype 绑定(bind)导致错误 `Convariant property incompatible with contravariant use in assignment of property`

这个表达式对于javascript/react来说非常简单,将函数绑定(bind)到this范围。this.toggle=this.toggle.bind(this);但是当引入flowtype时,会导致错误:我该怎么做才能通过流量测试?toggle可以是任何函数,甚至可以是空函数。toggle(){///donothing} 最佳答案 你必须在你的类中将你的toggle声明为Function(紧凑的方式):classFoo{toggle:Function=(){...}}或者,您可以将签名和实际方法分开:classFoo{togg

php - 操作数类型冲突 : text is incompatible with uniqueidentifier

我见过类似的错误消息,但大多数都与将int或float与uniqueidenifier进行比较有关,这让您明白为什么会出错。我的错误是这样的:SQLSTATE[22018]:Invalidcharactervalueforcastspecification:206[Microsoft][SQLServerNativeClient11.0][SQLServer]Operandtypeclash:textisincompatiblewithuniqueidentifier(SQLExecute[206]at/usr/src/php-5.4.8/ext/pdo_odbc/odbc_stmt.

CakePHP 中的 PHPExcel : error--excel file incompatible or corrupted

我正在使用Cake;当我使用生成函数在浏览器中打开excel文件时:我从MicrosoftExcel中收到此错误:Excelcannotopenthefile'Groupslist.xlsx'becausethefileformatorfileextensionisnotvalid.Verifythatthefilehasnotbeencorruptedandthatthefileextensionmatchestheformatofthefile.我试过从浏览器下载文件后去掉文件名中的空格,然后再次打开,它显示了与上述相同的错误。任何人都经历过这个并解决了它?或者有什么线索吗?基本上

Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time.

目录项目概述: 问题解决:步骤一:在关联的两个模块zx-gateway-0829和zx-common-0829中寻找spring-boot-starter-web 步骤二:删除gateway模块pom.xml中关联的commont模块,将common中gateway所需要的工具复制一份到gateway模块对应位置下。前言嗨喽,CSDN的友友们,今天启动网关Gateway时发现了一个不兼容的问题,记录一下猿征路上的小bug😜报错:SpringMVCfoundonclasspath,whichisincompatiblewithSpringCloudGatewayatthistime.Please