小编gan*_*lub的帖子

Php电子邮件正文解码到普通

我正在用PHP提取一些相同的电子邮件内容,但我不能.

接着就,随即:

$body = imap_body($imap_o, $email_n);
Run Code Online (Sandbox Code Playgroud)

我明白了:

Pour = le r=E9cup=E9rer, il suffit de le t=E9l=E9charger, de le r=E9ceptionner puis de    l=92ouvrir.=Une f= ois votre traduction termin=E9e, n=92oubliez pas de sauvegarder vos paires de langues et d=92effectuer une v=E9rification g=E9n=E9rale (statuts des segments, b= alises, nombres, espaces, majuscules, etc.).Ensui= te, cliquez sur =AB=A0Terminer et livrer=A0=BB.Voici le r=E9capitulatif du projet=A0:
Run Code Online (Sandbox Code Playgroud)

但是有很多=*我知道= 20它和空间,但这里有其他我不知道是什么意思.

如果我添加quoted_printable_decode():

$body = quoted_printable_decode($body);
Run Code Online (Sandbox Code Playgroud)

我明白了:

Pour le r?cup?rer, il suffit de le t?l?charger, de le r?ceptionner puis de l?ouvrir. …
Run Code Online (Sandbox Code Playgroud)

php imap decode utf-8

5
推荐指数
1
解决办法
5079
查看次数

线程结构作为函数参数C

我在将结构指针传递给函数时遇到了麻烦,因为我对这些指针和引用有点困惑.我想修改函数的thread.thread_numthread_start.

#include <stdio.h>
#include <stdlib.h> //malloc, free
#include <pthread.h>

#define N 5

// void    *malloc(size_t);

struct thread {   
     pthread_t thread_id;       
     int       thread_num;
     // int       thread_sum;       
};

void *thread_start(void *thread)
{
   struct thread *my_data;
   my_data = (struct thread *)thread;
   printf("num T: %i\n", my_data->thread_num);
   my_data->thread_num=4;
   printf("num T: %i\n", my_data->thread_num);

   return NULL;
}

int main(int argc, char *argv[])
{
   int i;
   struct thread  pthread_data;
   struct thread *thread = &pthread_data;

   thread->thread_num=2;
   pthread_create(&thread->thread_id, NULL, thread_start, (void *)&thread);
   printf("num: %i\n",thread->thread_num);

   pthread_exit(NULL);
   return …
Run Code Online (Sandbox Code Playgroud)

c multithreading struct

3
推荐指数
1
解决办法
9023
查看次数

标签 统计

c ×1

decode ×1

imap ×1

multithreading ×1

php ×1

struct ×1

utf-8 ×1