html中and是 字符,HTML5 Builder - 在组合框中查找页面和奇怪的字符(HTML5 Builder - chaging pages and weird characters in c...

HTML5 Builder - 在组合框中查找页面和奇怪的字符(HTML5 Builder - chaging pages and weird characters in combobox)

我用HTML5 Builder制作了2个Web服务器页面。 但是,我有两个简单的问题:

1:我不知道如何调用其他页面(用户插入正确的用户名和密码后 - >显示其他页面)

第二:在我的Combobox上,有一些与Collat​​ion相关的东西,我无法解决......这是将数据库中的用户名加载到组合框中的代码:

function ComboBox1BeforeShow($sender, $params)

{

$this->ComboBox1->Items->clear; //doesn't work anyway - 3rd question

$this->ds_users->DataSet->first();

while( ! $this->ds_users->DataSet->EOF )

{

$this->ComboBox1->AddItem($this->ds_users->DataSet->Fields["Nome"]);

$this->ds_users->DataSet->next();

}

}

我得到“FlávioGameiro”而不是“FlávioGameiro”。 我检查了MYSQL数据库的Collat​​ion,并将其设置为“ utf8 -- UTF-8 Unicode ”。 尝试使用Latin1但仍然相同。 也许我认为在代码中可以做出什么?

谢谢!

I made 2 web server pages with the HTML5 Builder. However, I have this 2 simple questions:

1st: I don't know how to call the other page (After user insert correct username and password -> show the other page)

2nd: On my Combobox, there is something Related with the Collation that i can't solve... This is the code to load usernames from the database into the combobox:

function ComboBox1BeforeShow($sender, $params)

{

$this->ComboBox1->Items->clear; //doesn't work anyway - 3rd question

$this->ds_users->DataSet->first();

while( ! $this->ds_users->DataSet->EOF )

{

$this->ComboBox1->AddItem($this->ds_users->DataSet->Fields["Nome"]);

$this->ds_users->DataSet->next();

}

}

And I get "Flávio Gameiro" instead of "Flávio Gameiro". I checked MYSQL Database's Collation, and its set to "utf8 -- UTF-8 Unicode". Tryed with Latin1 but still the same. Maybe there is anything that can be made in the code I think?

Thanks!

原文:https://stackoverflow.com/questions/17407965

更新时间:2019-10-25 17:10

最满意答案

好的,是时候回答我自己的问题了:

1st - > header("Location: u_main.php");

3 - >这是$this->ComboBox1->clear; 而不是$this->ComboBox1->Items->clear;

:)

Ok, time to answer my own question:

1st -> header("Location: u_main.php");

3rd -> It is $this->ComboBox1->clear; and not $this->ComboBox1->Items->clear;

:)

相关问答

大多数已知的IDE及其最新版本,如Netbeans , Eclipse , Dreamweaver ,都支持原生HTML5。 您可以根据自己的喜好找到更多信息并选择一个。 Most of known IDEs and their latest version, like Netbeans, Eclipse, Dreamweaver, support natively HTML5. You can find more info and pick one according to your prefe

...

如果您使用的是客户端AJAX导航(默认情况下在移动页面中启用),您可以使用以下命令更改页面: $.mobile.changePage("TargetPage.php");

If you are using client-side AJAX navigation, which is enabled by default in mobile pages, you can change page with this: $.mobile.changePage("TargetPage.php");

我通过拆分配置和启动来解决问题。 我以前在同一个文件中进行了配置和启动。 我的配置文件只有配置,我有一个单独的启动文件,实际启动应用程序。 Index.cshtml @using System.Web.Optimization;

My Applic

...

我假设使用反射是答案,但无论我阅读多少,我都无法弄清楚语法。 你也许可以使用反射。 我不会。 我会选择HoneycombHelper 。 此示例项目还有一种情况,即需要为3.0执行不同的操作 - 在这种情况下,使用操作栏中的自定义View 。 你不能在3.0之前的MenuItem上调用getActionView() 。 所以,在我需要自定义View ,我这样做: EditText add=null;

if (Build.VERSION.SDK_INT>=Build.VERSION

...

不应该是: entry.title post.name

entry.content post.contents

entry.url "/#{post.permalink}"

我不知道这是否是一个错字或者这是你遇到的问题。 话虽这么说,你可以发布更多的堆栈跟踪吗? Shouldn't it be: entry.title post.name

entry.content post.contents

entry.url "/#{post.permalink}"

I have no idea if t

...

Builder gem是rails ActionView组件的依赖项。 它提供了一种以编程方式构建XML文档和片段的简单方法。 在Rails中,它用于ActiveSupport(用于散列)和ActiveModel中的XML序列化。 它是某种类型的宝石,允许你建立内联xml而不是通常的erb? 构建器的主要用途不是创建内联XML - 这只是一个没有人真正使用的功能。 相反,它可用于构建您自己的序列化程序或更改模型的序列化方式。 ActiveRecord :: Serialzers :: XmlSer

...

https://forums.embarcadero.com/messageview.jspa?messageID=580784&stqc=true 这是答案。 2天,0个答案。 https://forums.embarcadero.com/messageview.jspa?messageID=580784&stqc=true Here is the Answer. 2 days, 0 answers.

好的,是时候回答我自己的问题了: 1st - > header("Location: u_main.php"); 2 - > http://docwiki.embarcadero.com/RadPHP/XE3/en/UTF-8_Setup - > PHP安装程序做了伎俩 3 - >这是$this->ComboBox1->clear; 而不是$this->ComboBox1->Items->clear; :) Ok, time to answer my own question: 1st -> he

...

要使Embarcadero HTML5Builder与手动安装Android SDK Tools ,请按照下列步骤操作: 设置环境变量Path=%Path%;[android sdk tools]\sdk\platform-tools 对于Windows x86,在HKLM\Software\Android SDK Tools\Path = [android-sdk-path]\sdk创建一个注册表项 对于Windows x64,在HKLM\Software\Wow6432Node\Android

...

我将从我的结论开始。 我认为它的设计很差。 让我做一些解释,并回复@Simon Bengtsson接受的答案 我绝不会冒犯任何人,但我只想说出自己的想法。 实际上,整个继承点是它们具有相似的特性,但是你想添加一个额外的层来放置一些扩展的特性。 显然,扩展的“子”类比“父”类知道更多(例如了解Eloquent模型) 对我来说,“Builder”是一个Builder。 毕竟,两者都在构建查询,无论其检查或观察的条件如何。 这就是建造者的目的(至少从我看到的)。 所以它在同一层(除了Eloquent\B

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值