title: Issue reading Japanese characters from file - C
body: <p>I am writing a program which reads a file with almost 2 million lines. The file is in the format integer ID tab with an artist name string.</p>
  
  <pre><code>6821361 Selinsgrove High School Chorus
  10151460    greek-Antique
  10236365    jnr walker &amp; the all-stars
  6878792 Grieg - Kraggerud, Kjekshus
  6880556 Mr. Oiseau
  6906305 stars on 54 (maxi single)
  10584525    Jonie Mitchel
  10299729    エリス レジーナ／アントニオ カルロス ジョビン
  </code></pre>
  
  <p>Above is an example with some items from the file (not some lines do not follow the specific format). My program work file until it gets to the last line from the example then it endlessly prints <code>エリス レジーナ／アントニオ カルロス ジョビ\343\203</code>.</p>
  
  <pre><code>struct artist *read_artists(char *fname)
  {
      FILE *file;
      struct artist *temp = (struct artist*)malloc(sizeof(struct artist));
      struct artist *head = (struct artist*)malloc(sizeof(struct artist));
      file = fopen("/Users/Daniel/Library/Developer/Xcode/DerivedData/project_Audioscrobbler_Artists-hgwyqpinuoxayzbmvarcjxryqnrz/Build/Products/Debug/artist_data.txt", "r");
      if(file == 0)
      {
          perror("fopen");
          exit(1);
      }
      int artist_ID;
      char artist_name[650];
      while(!feof(file))
      {
          fscanf(file, "%d\t%65[^\t\n]\n", &amp;artist_ID, artist_name);
          temp = create_play(artist_ID, artist_name, 0, -1);
          head = add_play(head, temp);
          printf("%s\n", artist_name);
      }
      fclose(file);
      //print_plays(head);
      return head;
  }
  </code></pre>
  
  <p>Above is my code for reading from the file. Can you please help explain what is wrong?</p>