Foros del Web » Programación para mayores de 30 ;) » .NET »

Problema con C# pagina en japones

Estas en el tema de Problema con C# pagina en japones en el foro de .NET en Foros del Web. Hola chicos.. tengo un problema bastante importante... estoy programando una web en japones en asp.net y c# esta todo bien si en la .aspx pongo ...
  #1 (permalink)  
Antiguo 16/07/2009, 08:49
 
Fecha de Ingreso: junio-2007
Ubicación: Argentina
Mensajes: 111
Antigüedad: 16 años, 10 meses
Puntos: 0
Exclamación Problema con C# pagina en japones

Hola chicos.. tengo un problema bastante importante... estoy programando una web en japones en asp.net y c# esta todo bien si en la .aspx pongo "charset=iso-8859-1" pero no se ven correctos los caracteres... ahora.. para que los caracteres se vean bien tengo que poner codificacion "charset=iso-8" o "charset=iso-2022-jp" pero me tira un error en el c#

el error es el siguiente...

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).


Source Error:
Código PHP:
Line 10using System.Web.UI.HtmlControls;
Line 11
Line 12: public partial class descProductoSystem.Web.UI.Page //--- aca el error --- \\
Line 13: {
Line 14:     public string Imagen
es muy raro..

Bueno chicos espero que me puedan ayudar..
Muchas gracias...
  #2 (permalink)  
Antiguo 18/07/2009, 11:57
 
Fecha de Ingreso: agosto-2006
Ubicación: en lima peru
Mensajes: 184
Antigüedad: 17 años, 8 meses
Puntos: 0
Respuesta: Problema con C# pagina en japones

Estuve probando con el idioma chino y salio todo normal, si te ayuda este código aquí lo tienes

Código:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using System.Threading;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Init(object sender, EventArgs e)
    {
        string vstr_Cultura = "zh-CN";
        CultureInfo[] allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
        CultureInfo vobj_Culture = new CultureInfo(vstr_Cultura);
        Thread.CurrentThread.CurrentCulture = vobj_Culture;
        Thread.CurrentThread.CurrentUICulture = vobj_Culture;
        List<string> vstr_ListaCulturas = new List<string>();
        foreach (CultureInfo ci in allCultures)
        {
            vstr_ListaCulturas.Add(ci.Name);
             Response.Write(ci.Name +"</br>");
        }

    }
    protected void Page_Load(object sender, EventArgs e)
    {
 
        DateTime vdtm_FecActualizacion = DateTime.Now;
        int viint_Dia = vdtm_FecActualizacion.Day;
        string vstr_MesNombre = vdtm_FecActualizacion.ToString("MMM");
        int viint_Anio = vdtm_FecActualizacion.Year;
        Response.Write(viint_Dia.ToString() + "." + vstr_MesNombre + "." + viint_Anio);
    }
}



Código HTML:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html> 
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:37.