Search Unity

3D Text and special char

Discussion in 'Flash' started by laurent-clave, May 7, 2012.

  1. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    280
    Hello and sorry again for this problem;)
    I displays different string in 3DText, but when a string contains special char, nothing appears (The entire chain!)...
    example:
    Code (csharp):
    1.  
    2. using UnityEngine;
    3. using System.Collections;
    4. using System.Collections.Generic;
    5. public class Main : MonoBehaviour {
    6.  
    7.     public Transform guiText;
    8.     // Use this for initialization
    9.     IEnumerator Start () {
    10.         List<string> strings = new List<string>();
    11.         strings.Add("Hello");
    12.         strings.Add("euro char test");
    13.         strings.Add("Eur/Dol : € $");
    14.         strings.Add("int test:");
    15.         strings.Add("343");
    16.         strings.Add("special char test");
    17.         strings.Add("é à ô");
    18.         strings.Add("stop");
    19.         for(int c=0;c < strings.Count;c++){
    20.             (guiText.GetComponent("TextMesh") as TextMesh).text = strings[c];
    21.             yield return new WaitForSeconds(1f);
    22.         }
    23.        
    24.        
    25.     }
    26.    
    27.  
    28. }
    Example in flash here (€ no working)
    Example in unity here (€ working)

    Source files

    Have an idea?
     
    Last edited: May 8, 2012
  2. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    280
    Nobody has had this problem?
    It's really blocking for my project ...
     
  3. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    280
    Sorry to revive the post, but I'm still with this problem ...
     
  4. milahenner

    milahenner

    Joined:
    May 15, 2012
    Posts:
    2
    I just tried using your sript, there are many corrupted lines it this coding
     
  5. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    280
    arf, probably because of the encoding of my text editor :(
    I will recreate the source.Thank ;)
     
  6. Christuff

    Christuff

    Joined:
    Oct 27, 2009
    Posts:
    5
    I got the same issue, did you find a workaroud ?
     
  7. dahooo2

    dahooo2

    Joined:
    May 23, 2011
    Posts:
    8
    Hello laurent.clave
    I got the same issue too, do you have a solution?
    Thanks.