使用utf8_unicode_ci索引时为什么= LIKE不同?(Why is = different from LIKE when using utf8_unicode_ci index?)
我有一个数据库表,其列
name
定义为VARCHAR(255) COLLATE utf8_unicode_ci
,带有唯一索引。 它包含名称"Grosse"
。以下语句不返回任何行:
SELECT name FROM authors WHERE name LIKE 'Große' COLLATE 'utf8_unicode_ci'
无论有没有添加
COLLATE
我都尝试过(可能没有必要)。以下语句返回正确的行:
SELECT name FROM authors WHERE name = 'Große'
为什么我会得到不同的结果,两个语句都不应该返回行吗?
I have a database table with column
name
defined asVARCHAR(255) COLLATE utf8_unicode_ci
with a unique index. It contains the name"Grosse"
.The following statement returns no rows:
SELECT name FROM authors WHERE name LIKE 'Große' COLLATE 'utf8_unicode_ci'
I've tried both with and without the
COLLATE
addition (which is probably not necessary).The following statement returns the correct row:
SELECT name FROM authors WHERE name = 'Große'
Why do I get different results, shouldn't both statements return the row?
原文:https://stackoverflow.com/questions/15970053
最满意答案
你忘了包括
<fileExtension>docx</fileExtension>
您的XML中与
documentBase64
节点相邻的节点。(上面的代码片段假设你发送了一个docx文件,将其更改为任何文件类型。)
换句话说,如果你的文档不是pdf,你需要告诉平台你的文档的格式是什么。 它假定pdf。
You forgot to include the
<fileExtension>docx</fileExtension>
node in your XML adjacent to the
documentBase64
node.(The snippet above assumes you're sending a docx file. Change it to whatever the filetype is.)
In other words, if your document is not a pdf, you need to tell the platform what the format of your documents are. It assumes pdf.
相关问答
更多-
我了解到,Zendesk应用程序框架对请求使用jQuery AJAX包装,并且阵列缓冲区类型不受支持,因此文件已损坏。 应用程序框架团队解决了这个问题。 I learned that the Zendesk app framework uses a jQuery AJAX wrapper for requests and the arraybuffer type is unsupported, so the file was getting corrupted. The app framework team ...
-
我的PDF不能正确转换为Base64。 在Powershell中使用这行代码,我能够成功创建并发送信封 $docEncodedBase64 = [Convert]::ToBase64String((Get-Content $PDFPath -Encoding Byte)) 感谢@Hackerman参考邮差! My PDF was not properly converting to Base64. Using this line of code in Powershell I was able to su ...
-
对于非pdf文件,使用base64字符串发布DocuSign Envelope失败(Post DocuSign Envelope with base64 string failed for non-pdf file)[2024-04-17]
你忘了包括docx 您的XML中与documentBase64节点相邻的节点。 (上面的代码片段假设你发送了一个docx文件,将其更改为任何文件类型。) 换句话说,如果你的文档不是pdf,你需要告诉平台你的文档的格式是什么。 它假定pdf。 You forgot to include thedocx node in your XML adjacent t ... -
改编自: 在VBA中使用Base64将图像插入到工作表中? 这适用于我 - 将文件保存到与运行代码的工作簿相同的位置。 Sub TestDecodeToFile() Dim strTempPath As String Dim b64test As String 'little face logo b64test = "R0lGODlhDwAPAKECAAAAzMzM/////wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48" & _ ...
-
您可以像这样在java中进行base64编码。 byte[] encodedBytes = Base64.encodeBase64("Test".getBytes()); String pdfInBase64 = new String(encodedBytes); 然后将pdfInBase64添加到您的帖子中。 You can base64 encode in java like this. byte[] encodedBytes = Base64.encodeBase64("Test".getBytes ...
-
尝试更改Content-Type标头值。 我不确定application/msword适用于此,我认为.docx的正确mime类型是 application/vnd.openxmlformats-officedocument.wordprocessingml.document 有关mime类型的更完整列表,请参阅此前的SO帖子: 什么是docx,pptx等正确的mime类型? I solved it with assistance from the DocuSign support team. You c ...
-
从Base64字符串下载PDF(Download PDF from Base64 string)[2023-05-15]
这里的例子似乎很有帮助: http : //php.net/manual/en/function.readfile.php 在你的情况下:Rails 4 HTTParty Docusign api无效的基本64字符串(Rails 4 HTTParty Docusign api invalid base 64 string)[2023-10-07]
您在标题中设置了"Content-Transfer-Encoding" => "Base64" 。 删除它。 None of the solutions offered really worked for me but I was able to get the send request through on my templates by changing the code on my body. Not sure why the 'Quick Start' process did not work fo ...PhoneGap的-BASE64。 它是cordova插件,也适合我。 phonegap-base64. It is cordova plugin and worked for me as well.我设法将pdf文件(乱码)转换为base64字符串,正确的定义应该是将二进制文件转换为base64。 以下是答案,感谢@DaTebe和以下参考答案: 使用Javascript检索二进制文件内容,base64对其进行编码并使用Python对其进行反向解码 答案, 首先,从引用的答案中编写两种转换方法 function base64Encode(str) { var CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567 ...相关文章
更多- 顶 lucene--创建index
- Hibernate Search(基于version3.4)--第四章Mapping entities to the index structure
- 我的架构演化笔记 13:自己动手写Nutch-index插件导入数据到MongoDB
- 利用SolrJ操作solr API完成index操作
- Solr4.7.2启动时的Index locked for write for core问题分析
- CI完整MVC案例-php项目实战之CodeIgniter
- Solr4.8.0源码分析(3)之index的线程池管理
- CI快速入门-php项目实战之CodeIgniter
- Setting up Nutch 2.1 with MySQL to handle UTF-8
- 统] Solr 介绍以及 XML 中特殊字符 Unicode 编码
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)