当我尝试在我的表中运行搜索查询时出现问题,问题是我的表中的某些数据有阿拉伯语和波斯语字符。例如“ي”这样的字符是阿拉伯语和“ی” “这是波斯语或”ك“和”ک“。 甚至在波斯语中都有“ا”和“آ”。
我应该如何运行搜索查询,以便搜索不同版本的阿拉伯语和波斯语字符?
由于
答案 0 :(得分:0)
使用PHP连接数据库时,请尝试设置 charset 。
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js"></script>
<script src="https://code.angularjs.org/1.5.5/angular-messages.js"></script>
<div ng-app="crud">
<form name="userForm" class="form-horizontal" role="form" >
<input type="password" class="form-control ng-invalid submitted" id="password" name="password" equal="confirmPassword" ng-model="password" ng-minlength="8" ng-maxlength="20" ng-class="{'valid': userForm.password.$valid || !userForm.password.$dirty, 'invalid': userForm.password.$invalid && userForm.password.$dirty}" required />
<input type="password" class="form-control submitted" id="confirmPassword" name="confirmPassword" ng-model="confirmPassword" required />
<div ng-messages="userForm.password.$error" ng-show="userForm.password.$dirty" role="alert">
<div ng-message="required">Please enter a value for this field.</div>
<div ng-message="equal">Passwords don't match.</div>
</div>
</form>
</div>