希伯来语rtl与phpmailer的联系表

时间:2018-08-05 02:05:44

标签: html right-to-left hebrew

我有一个RTL /希伯来语网站。使用PHPMailer / SMTP。

一切正常,包括Contact-Us表单,BUT-从该contacct表单收到的电子邮件具有所有希伯来语文本-LEFT合理,而不是像任何RTL语言一样为Right Justified。

我已经在PHP页面中定义了:pecification /job:worker/replica:0/task:0/device:GPU:1 for node 'gradients_1/model_with_bucke ts/embedding_attention_seq2seq_3/rnn/embedding_wrapper_9/embedding_lookup_grad/VariableShape' File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/training/monito red_session.py", line 1007, in _create_session return self._sess_creator.create_session() File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/training/monito red_session.py", line 696, in create_session self.tf_sess = self._session_creator.create_session() File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/training/monito red_session.py", line 467, in create_session init_fn=self._scaffold.init_fn) File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/training/sessio n_manager.py", line 285, in prepare_session sess.run(init_op, feed_dict=init_feed_dict) File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/client/session. py", line 901, in run result = self._run(None, fetches, feed_dict, options_ptr, File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/client/session. py", line 1137, in _run feed_dict_tensor, options, run_metadata) File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/client/session. py", line 1318, in _do_run run_metadata) File "/home/xh/aixh-tf1.8-new/lib/python2.7/site-packages/tensorflow/python/client/session. py", line 1337, in _do_call raise type(e)(node_def, op, message) InvalidArgumentError: Cannot assign a device for operation 'save_1/RestoreV2_2': Operation wa s explicitly assigned to /job:worker/replica:0/task:0/device:CPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:GPU:0, /job:localhost/replica:0/task:0/device:GPU:1 ]. Make sure the device specification refers to a valid device. [[Node: save_1/RestoreV2_2 = RestoreV2[dtypes=[DT_FLOAT, DT_INT32, DT_FLOAT, DT_INT3 2], _device="/job:worker/replica:0/task:0/device:CPU:0"](save_1/Const, save_1/RestoreV2_2/ten sor_names, save_1/RestoreV2_2/shape_and_slices)]]

“表单”页面HTML本身被定义为UTF,希伯来语,rtl,textarea是HTML。

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

添加<html dir="rtl" lang="he">,甚至dir="auto"。 还应将<meta charset="utf-8">添加到<head>部分。 另请参见:Structural markup and right-to-left text in HTML